---
title: "#021240 Hex Color — RGB, HSL, CMYK & CSS"
description: "Hex color #021240 — RGB(2, 18, 64), HSL(225, 94%, 13%), CMYK, OKLCH, shades, harmonies and contrast."
url: https://superdevpro.com/hex-colors/021240
---
Custom color

# #021240

#

Add to Chrome →

Reference

## Color values

Every format for this color — click any value to copy it.

Hue

225°

Sat

94%

Light

13%

Shades & tints

CSS variables

CSS

```
/* #021240 */
:root {
  --color--021240: #021240;
  --color--021240-rgb: 2, 18, 64;
  --color--021240-hsl: 225, 94%, 13%;
}
```

Explore

## Harmonies & accessibility

Color harmonies

Complementary

#021240

#403102

Analogous

#023140

#021240

#120240

Triadic

#021240

#400212

#124002

Split complementary

#021240

#401202

#314002

WCAG contrast

Aa

The quick brown fox.

18.05

White on this color

✓ AA

✓ AA Large

✓ AAA

Aa

1.16

Black on this color

✕ AA

✕ AA Large

✕ AAA

## Similar colors

12 colors

Tangaroa

#03163C

Gulf Blue

#051657

Deep Cove

#051040

Resolution Blue

#002387

Midnight

#011635

Deep Sapphire

#082567

Stratos

#000741

Catalina Blue

#062A78

Downriver

#092256

Madison

#09255D

International Klein Blue

#002FA7

Smalt

#003399

Free to install

## Pick this color from any page. Use SuperDev Pro’s eyedropper, contrast checker and 50+ dev tools right inside your browser.

Add to Chrome

Browse all colors

Free to install · No account · Works on Chrome & Firefox
