#02122C#02122C

#02122C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.6% C 0.058 H 257.3°. Best body text is #FFFFFF at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#02122C
RGBrgb(2, 18, 44)
HSLhsl(217, 91%, 9%)
HSVhsv(217, 95%, 17%)
CMYKcmyk(95.5%, 59.1%, 0%, 82.7%)
CIE-LABlab(5.67, 4.08, -19.24)
CIE-LCHlch(5.67, 19.66, 281.97°)
OKLaboklab(18.59% -0.0128 -0.0567)
OKLCHoklch(18.59% 0.058 257.3)
XYZxyz(0.6958, 0.6273, 2.4668)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02122C #2C1C02
analogous
#02272C #02122C #07022C
triadic
#02122C #2C0212 #122C02
tetradic
#02122C #2C0227 #2C1C02 #022C07
square
#02122C #2C0227 #2C1C02 #022C07
split-complementary
#02122C #2C0702 #272C02
monochromatic
#010C1D #010C1D #02122C #052A67 #0742A1

Accessibility & contrast

On white

18.66
#02122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02122C
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02122C#FFFFFF#000000##FFFFFF
##02122C1.0018.661.1318.66
#FFFFFF18.661.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04152D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#00181C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #02122c;
/* rgb */ color: rgb(2, 18, 44);
/* oklch */ color: oklch(18.6% 0.058 257.3);
Tailwind
colors: {
  custom: {
    50: '#494f65',
    500: '#02122c',
    950: '#000000',
  },
}
SCSS
$custom: #02122c;
$custom-light: #494f65;
$custom-dark: #000000;
JSON
{
  "hex": "#02122c",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 217.143,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18588,
    "c": 0.05811,
    "h": 257.3
  },
  "luminance": 0.00627
}

Semantic roles & 50–950 ramp

primary
#02122C
secondary
#714F19
accent
#AD29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #02122C

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

Preview Lab → · Contrast checker → · Palette generator →

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