#021F3B#021F3B

#021F3B is a very dark, moderate cyan. Relative luminance 0.013; OKLCH L 23.6% C 0.064 H 250.7°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#021F3B
RGBrgb(2, 31, 59)
HSLhsl(209, 93%, 12%)
HSVhsv(209, 97%, 23%)
CMYKcmyk(96.6%, 47.5%, 0%, 76.9%)
CIE-LABlab(11.33, 1.88, -21.09)
CIE-LCHlch(11.33, 21.17, 275.09°)
OKLaboklab(23.58% -0.0212 -0.0604)
OKLCHoklch(23.58% 0.064 250.7)
XYZxyz(1.3041, 1.3085, 4.3206)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F3B #3B1E02
analogous
#023B3B #021F3B #02023B
triadic
#021F3B #3B021F #1F3B02
tetradic
#021F3B #3B023B #3B1E02 #023B02
square
#021F3B #3B023B #3B1E02 #023B02
split-complementary
#021F3B #3B0202 #3B3B02
monochromatic
#01101E #01101E #021F3B #043E76 #065DB1

Accessibility & contrast

On white

16.64
#021F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#021F3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F3B
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F3B#FFFFFF#000000##FFFFFF
##021F3B1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11213C
Deuteranopia (green-blind)
#071C3A
Tritanopia (blue-blind)
#00262A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #021f3b;
/* rgb */ color: rgb(2, 31, 59);
/* oklch */ color: oklch(23.6% 0.064 250.7);
Tailwind
colors: {
  custom: {
    50: '#4e5a71',
    500: '#021f3b',
    950: '#000000',
  },
}
SCSS
$custom: #021f3b;
$custom-light: #4e5a71;
$custom-dark: #000000;
JSON
{
  "hex": "#021f3b",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 59
  },
  "hsl": {
    "h": 209.474,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23579,
    "c": 0.06402,
    "h": 250.7
  },
  "luminance": 0.01309
}

Semantic roles & 50–950 ramp

primary
#021F3B
secondary
#7E4C1A
accent
#9229FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #021F3B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#021F3B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva