#02112C#02112C

#02112C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.3% C 0.060 H 258.5°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#02112C
RGBrgb(2, 17, 44)
HSLhsl(219, 91%, 9%)
HSVhsv(219, 95%, 17%)
CMYKcmyk(95.5%, 61.4%, 0%, 82.7%)
CIE-LABlab(5.38, 4.66, -19.69)
CIE-LCHlch(5.38, 20.23, 283.32°)
OKLaboklab(18.31% -0.0119 -0.0585)
OKLCHoklch(18.31% 0.06 258.5)
XYZxyz(0.6799, 0.5956, 2.4615)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112C #2C1D02
analogous
#02262C #02112C #08022C
triadic
#02112C #2C0211 #112C02
tetradic
#02112C #2C0226 #2C1D02 #022C08
square
#02112C #2C0226 #2C1D02 #022C08
split-complementary
#02112C #2C0802 #262C02
monochromatic
#010B1D #010B1D #02112C #052867 #073EA1

Accessibility & contrast

On white

18.76
#02112C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02112C
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112C#FFFFFF#000000##FFFFFF
##02112C1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02112c;
/* rgb */ color: rgb(2, 17, 44);
/* oklch */ color: oklch(18.3% 0.060 258.5);
Tailwind
colors: {
  custom: {
    50: '#494f65',
    500: '#02112c',
    950: '#000000',
  },
}
SCSS
$custom: #02112c;
$custom-light: #494f65;
$custom-dark: #000000;
JSON
{
  "hex": "#02112c",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 44
  },
  "hsl": {
    "h": 218.571,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18306,
    "c": 0.05965,
    "h": 258.5
  },
  "luminance": 0.00596
}

Semantic roles & 50–950 ramp

primary
#02112C
secondary
#715119
accent
#B229FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #02112C

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

Preview Lab → · Contrast checker → · Palette generator →

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