#02122E#02122E

#02122E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.062 H 258.4°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#02122E
RGBrgb(2, 18, 46)
HSLhsl(218, 92%, 9%)
HSVhsv(218, 96%, 18%)
CMYKcmyk(95.7%, 60.9%, 0%, 82%)
CIE-LABlab(5.81, 5.06, -20.51)
CIE-LCHlch(5.81, 21.12, 283.85°)
OKLaboklab(18.78% -0.0124 -0.0603)
OKLCHoklch(18.78% 0.062 258.4)
XYZxyz(0.7343, 0.6427, 2.6696)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02122E #2E1E02
analogous
#02282E #02122E #08022E
triadic
#02122E #2E0212 #122E02
tetradic
#02122E #2E0228 #2E1E02 #022E08
square
#02122E #2E0228 #2E1E02 #022E08
split-complementary
#02122E #2E0802 #282E02
monochromatic
#010B1D #010B1D #02122E #052969 #0740A3

Accessibility & contrast

On white

18.61
#02122E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02122E
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02122E#FFFFFF#000000##FFFFFF
##02122E1.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03152F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#00191D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #02122e;
/* rgb */ color: rgb(2, 18, 46);
/* oklch */ color: oklch(18.8% 0.062 258.4);
Tailwind
colors: {
  custom: {
    50: '#494f67',
    500: '#02122e',
    950: '#000000',
  },
}
SCSS
$custom: #02122e;
$custom-light: #494f67;
$custom-dark: #000000;
JSON
{
  "hex": "#02122e",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 46
  },
  "hsl": {
    "h": 218.182,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18777,
    "c": 0.06152,
    "h": 258.4
  },
  "luminance": 0.00643
}

Semantic roles & 50–950 ramp

primary
#02122E
secondary
#735219
accent
#B129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #02122E

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

Preview Lab → · Contrast checker → · Palette generator →

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