#02112F#02112F

#02112F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.065 H 259.9°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#02112F
RGBrgb(2, 17, 47)
HSLhsl(220, 92%, 10%)
HSVhsv(220, 96%, 18%)
CMYKcmyk(95.7%, 63.8%, 0%, 81.6%)
CIE-LABlab(5.59, 6.15, -21.59)
CIE-LCHlch(5.59, 22.45, 285.90°)
OKLaboklab(18.6% -0.0114 -0.0637)
OKLCHoklch(18.6% 0.065 259.9)
XYZxyz(0.7384, 0.6189, 2.7693)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112F #2F2002
analogous
#02282F #02112F #0A022F
triadic
#02112F #2F0211 #112F02
tetradic
#02112F #2F0228 #2F2002 #022F0A
square
#02112F #2F0228 #2F2002 #022F0A
split-complementary
#02112F #2F0A02 #282F02
monochromatic
#010B1D #010B1D #02112F #04266A #073BA4

Accessibility & contrast

On white

18.69
#02112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#02112F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02112F
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112F#FFFFFF#000000##FFFFFF
##02112F1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #02112f;
/* rgb */ color: rgb(2, 17, 47);
/* oklch */ color: oklch(18.6% 0.065 259.9);
Tailwind
colors: {
  custom: {
    50: '#4a4f68',
    500: '#02112f',
    950: '#000000',
  },
}
SCSS
$custom: #02112f;
$custom-light: #4a4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#02112f",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 220,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.186,
    "c": 0.06476,
    "h": 259.9
  },
  "luminance": 0.00619
}

Semantic roles & 50–950 ramp

primary
#02112F
secondary
#745519
accent
#B829FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02112F

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

Preview Lab → · Contrast checker → · Palette generator →

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