#02122F#02122F

#02122F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 18.9% C 0.063 H 258.9°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#02122F
RGBrgb(2, 18, 47)
HSLhsl(219, 92%, 10%)
HSVhsv(219, 96%, 18%)
CMYKcmyk(95.7%, 61.7%, 0%, 81.6%)
CIE-LABlab(5.88, 5.56, -21.13)
CIE-LCHlch(5.88, 21.85, 284.74°)
OKLaboklab(18.87% -0.0122 -0.062)
OKLCHoklch(18.87% 0.063 258.9)
XYZxyz(0.7542, 0.6507, 2.7746)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02122F #2F1F02
analogous
#02292F #02122F #09022F
triadic
#02122F #2F0212 #122F02
tetradic
#02122F #2F0229 #2F1F02 #022F09
square
#02122F #2F0229 #2F1F02 #022F09
split-complementary
#02122F #2F0902 #292F02
monochromatic
#010B1D #010B1D #02122F #04286A #073FA4

Accessibility & contrast

On white

18.58
#02122F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#02122F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02122F
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02122F#FFFFFF#000000##FFFFFF
##02122F1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00191E
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #02122f;
/* rgb */ color: rgb(2, 18, 47);
/* oklch */ color: oklch(18.9% 0.063 258.9);
Tailwind
colors: {
  custom: {
    50: '#4a4f68',
    500: '#02122f',
    950: '#000000',
  },
}
SCSS
$custom: #02122f;
$custom-light: #4a4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#02122f",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 47
  },
  "hsl": {
    "h": 218.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18873,
    "c": 0.06321,
    "h": 258.9
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#02122F
secondary
#745319
accent
#B329FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #02122F

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

Preview Lab → · Contrast checker → · Palette generator →

#02122F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva