#020224#020224

#020224 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.0% C 0.073 H 270.0°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#020224
RGBrgb(2, 2, 36)
HSLhsl(240, 89%, 7%)
HSVhsv(240, 94%, 14%)
CMYKcmyk(94.4%, 94.4%, 0%, 85.9%)
CIE-LABlab(1.66, 7.80, -19.39)
CIE-LCHlch(1.66, 20.90, 291.92°)
OKLaboklab(12.99% 0 -0.0734)
OKLCHoklch(12.99% 0.073 270)
XYZxyz(0.3651, 0.1837, 1.6849)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020224 #242402
analogous
#021324 #020224 #130224
triadic
#020224 #240202 #022402
tetradic
#020224 #240213 #242402 #022413
square
#020224 #240213 #242402 #022413
split-complementary
#020224 #241302 #132402
monochromatic
#02021D #02021D #020224 #05055E #080898

Accessibility & contrast

On white

20.25
#020224 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#020224 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020224
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020224#FFFFFF#000000##FFFFFF
##0202241.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000825
Deuteranopia (green-blind)
#000523
Tritanopia (blue-blind)
#000A11
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #020224;
/* rgb */ color: rgb(2, 2, 36);
/* oklch */ color: oklch(13.0% 0.073 270.0);
Tailwind
colors: {
  custom: {
    50: '#47475e',
    500: '#020224',
    950: '#000000',
  },
}
SCSS
$custom: #020224;
$custom-light: #47475e;
$custom-dark: #000000;
JSON
{
  "hex": "#020224",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 36
  },
  "hsl": {
    "h": 240,
    "s": 89.474,
    "l": 7.451
  },
  "oklch": {
    "l": 0.12988,
    "c": 0.07339,
    "h": 270
  },
  "luminance": 0.00184
}

Semantic roles & 50–950 ramp

primary
#020224
secondary
#6A6A18
accent
#FF29FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #020224

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

Preview Lab → · Contrast checker → · Palette generator →

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