#021639#021639

#021639 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 20.9% C 0.074 H 259.2°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#021639
RGBrgb(2, 22, 57)
HSLhsl(218, 93%, 12%)
HSVhsv(218, 96%, 22%)
CMYKcmyk(96.5%, 61.4%, 0%, 77.6%)
CIE-LABlab(7.97, 8.06, -25.08)
CIE-LCHlch(7.97, 26.34, 287.81°)
OKLaboklab(20.92% -0.0139 -0.0724)
OKLCHoklch(20.92% 0.074 259.2)
XYZxyz(1.0502, 0.8820, 3.9850)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021639 #392502
analogous
#023239 #021639 #0A0239
triadic
#021639 #390216 #163902
tetradic
#021639 #390232 #392502 #02390A
square
#021639 #390232 #392502 #02390A
split-complementary
#021639 #390A02 #323902
monochromatic
#010B1E #010B1E #021639 #042D74 #0644AF

Accessibility & contrast

On white

17.85
#021639 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#021639 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021639
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021639#FFFFFF#000000##FFFFFF
##0216391.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011A3A
Deuteranopia (green-blind)
#001538
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #021639;
/* rgb */ color: rgb(2, 22, 57);
/* oklch */ color: oklch(20.9% 0.074 259.2);
Tailwind
colors: {
  custom: {
    50: '#4d5270',
    500: '#021639',
    950: '#000000',
  },
}
SCSS
$custom: #021639;
$custom-light: #4d5270;
$custom-dark: #000000;
JSON
{
  "hex": "#021639",
  "rgb": {
    "r": 2,
    "g": 22,
    "b": 57
  },
  "hsl": {
    "h": 218.182,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20924,
    "c": 0.07371,
    "h": 259.2
  },
  "luminance": 0.00882
}

Semantic roles & 50–950 ramp

primary
#021639
secondary
#7D591A
accent
#B129FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #021639

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

Preview Lab → · Contrast checker → · Palette generator →

#021639 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva