#02112B#02112B

#02112B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.2% C 0.058 H 258.0°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#02112B
RGBrgb(2, 17, 43)
HSLhsl(218, 91%, 9%)
HSVhsv(218, 95%, 17%)
CMYKcmyk(95.3%, 60.5%, 0%, 83.1%)
CIE-LABlab(5.31, 4.20, -19.05)
CIE-LCHlch(5.31, 19.50, 282.42°)
OKLaboklab(18.21% -0.0121 -0.0567)
OKLCHoklch(18.21% 0.058 258)
XYZxyz(0.6614, 0.5881, 2.3637)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112B #2B1C02
analogous
#02262B #02112B #08022B
triadic
#02112B #2B0211 #112B02
tetradic
#02112B #2B0226 #2B1C02 #022B08
square
#02112B #2B0226 #2B1C02 #022B08
split-complementary
#02112B #2B0802 #262B02
monochromatic
#010C1D #010C1D #02112B #052865 #073FA0

Accessibility & contrast

On white

18.79
#02112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02112B
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112B#FFFFFF#000000##FFFFFF
##02112B1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #02112b;
/* rgb */ color: rgb(2, 17, 43);
/* oklch */ color: oklch(18.2% 0.058 258.0);
Tailwind
colors: {
  custom: {
    50: '#484f64',
    500: '#02112b',
    950: '#000000',
  },
}
SCSS
$custom: #02112b;
$custom-light: #484f64;
$custom-dark: #000000;
JSON
{
  "hex": "#02112b",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 218.049,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.1821,
    "c": 0.05795,
    "h": 258
  },
  "luminance": 0.00588
}

Semantic roles & 50–950 ramp

primary
#02112B
secondary
#705019
accent
#B129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #02112B

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

Preview Lab → · Contrast checker → · Palette generator →

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