#02112E#02112E

#02112E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.063 H 259.5°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#02112E
RGBrgb(2, 17, 46)
HSLhsl(220, 92%, 9%)
HSVhsv(220, 96%, 18%)
CMYKcmyk(95.7%, 63%, 0%, 82%)
CIE-LABlab(5.52, 5.64, -20.96)
CIE-LCHlch(5.52, 21.71, 285.06°)
OKLaboklab(18.5% -0.0115 -0.062)
OKLCHoklch(18.5% 0.063 259.5)
XYZxyz(0.7184, 0.6110, 2.6643)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112E #2E1F02
analogous
#02272E #02112E #09022E
triadic
#02112E #2E0211 #112E02
tetradic
#02112E #2E0227 #2E1F02 #022E09
square
#02112E #2E0227 #2E1F02 #022E09
split-complementary
#02112E #2E0902 #272E02
monochromatic
#010B1D #010B1D #02112E #052769 #073CA3

Accessibility & contrast

On white

18.71
#02112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02112E
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112E#FFFFFF#000000##FFFFFF
##02112E1.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02112e;
/* rgb */ color: rgb(2, 17, 46);
/* oklch */ color: oklch(18.5% 0.063 259.5);
Tailwind
colors: {
  custom: {
    50: '#494f67',
    500: '#02112e',
    950: '#000000',
  },
}
SCSS
$custom: #02112e;
$custom-light: #494f67;
$custom-dark: #000000;
JSON
{
  "hex": "#02112e",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 219.545,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.185,
    "c": 0.06306,
    "h": 259.5
  },
  "luminance": 0.00611
}

Semantic roles & 50–950 ramp

primary
#02112E
secondary
#735419
accent
#B629FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02112E

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

Preview Lab → · Contrast checker → · Palette generator →

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