#021F39#021F39

#021F39 is a very dark, moderate cyan. Relative luminance 0.013; OKLCH L 23.4% C 0.061 H 249.0°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#021F39
RGBrgb(2, 31, 57)
HSLhsl(208, 93%, 12%)
HSVhsv(208, 96%, 22%)
CMYKcmyk(96.5%, 45.6%, 0%, 77.6%)
CIE-LABlab(11.19, 0.92, -19.89)
CIE-LCHlch(11.19, 19.92, 272.64°)
OKLaboklab(23.42% -0.0218 -0.0569)
OKLCHoklch(23.42% 0.061 249)
XYZxyz(1.2533, 1.2881, 4.0527)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F39 #391C02
analogous
#023938 #021F39 #020339
triadic
#021F39 #39021F #1F3902
tetradic
#021F39 #380239 #391C02 #033902
square
#021F39 #380239 #391C02 #033902
split-complementary
#021F39 #390203 #393802
monochromatic
#01101E #01101E #021F39 #043F74 #065FAF

Accessibility & contrast

On white

16.70
#021F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021F39
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F39#FFFFFF#000000##FFFFFF
##021F391.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12213A
Deuteranopia (green-blind)
#091C38
Tritanopia (blue-blind)
#002529
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #021f39;
/* rgb */ color: rgb(2, 31, 57);
/* oklch */ color: oklch(23.4% 0.061 249.0);
Tailwind
colors: {
  custom: {
    50: '#4d5a6f',
    500: '#021f39',
    950: '#000000',
  },
}
SCSS
$custom: #021f39;
$custom-light: #4d5a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#021f39",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 57
  },
  "hsl": {
    "h": 208.364,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.23422,
    "c": 0.06093,
    "h": 249
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#021F39
secondary
#7D491A
accent
#8E29FF
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020307
muted
#78787A

Preview Lab

Preview with #021F39

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

Preview Lab → · Contrast checker → · Palette generator →

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