#02112D#02112D

#02112D is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.4% C 0.061 H 259.0°. Best body text is #FFFFFF at 18.74:1 contrast (WCAG AA passes).

Color values

HEX#02112D
RGBrgb(2, 17, 45)
HSLhsl(219, 91%, 9%)
HSVhsv(219, 96%, 18%)
CMYKcmyk(95.6%, 62.2%, 0%, 82.4%)
CIE-LABlab(5.45, 5.15, -20.33)
CIE-LCHlch(5.45, 20.97, 284.21°)
OKLaboklab(18.4% -0.0117 -0.0602)
OKLCHoklch(18.4% 0.061 259)
XYZxyz(0.6990, 0.6032, 2.5617)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112D #2D1E02
analogous
#02272D #02112D #09022D
triadic
#02112D #2D0211 #112D02
tetradic
#02112D #2D0227 #2D1E02 #022D09
square
#02112D #2D0227 #2D1E02 #022D09
split-complementary
#02112D #2D0902 #272D02
monochromatic
#010B1D #010B1D #02112D #052768 #073DA2

Accessibility & contrast

On white

18.74
#02112D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02112D
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112D#FFFFFF#000000##FFFFFF
##02112D1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02112d;
/* rgb */ color: rgb(2, 17, 45);
/* oklch */ color: oklch(18.4% 0.061 259.0);
Tailwind
colors: {
  custom: {
    50: '#494f66',
    500: '#02112d',
    950: '#000000',
  },
}
SCSS
$custom: #02112d;
$custom-light: #494f66;
$custom-dark: #000000;
JSON
{
  "hex": "#02112d",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 45
  },
  "hsl": {
    "h": 219.07,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18402,
    "c": 0.06136,
    "h": 259
  },
  "luminance": 0.00603
}

Semantic roles & 50–950 ramp

primary
#02112D
secondary
#725319
accent
#B429FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #02112D

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

Preview Lab → · Contrast checker → · Palette generator →

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