#02112A#02112A

#02112A is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.1% C 0.056 H 257.4°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#02112A
RGBrgb(2, 17, 42)
HSLhsl(218, 91%, 9%)
HSVhsv(218, 95%, 16%)
CMYKcmyk(95.2%, 59.5%, 0%, 83.5%)
CIE-LABlab(5.25, 3.73, -18.40)
CIE-LCHlch(5.25, 18.77, 281.46°)
OKLaboklab(18.12% -0.0123 -0.0549)
OKLCHoklch(18.12% 0.056 257.4)
XYZxyz(0.6432, 0.5809, 2.2683)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02112A #2A1B02
analogous
#02252A #02112A #07022A
triadic
#02112A #2A0211 #112A02
tetradic
#02112A #2A0225 #2A1B02 #022A07
square
#02112A #2A0225 #2A1B02 #022A07
split-complementary
#02112A #2A0702 #252A02
monochromatic
#010C1D #010C1D #02112A #052964 #08409F

Accessibility & contrast

On white

18.81
#02112A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02112A
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02112A#FFFFFF#000000##FFFFFF
##02112A1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #02112a;
/* rgb */ color: rgb(2, 17, 42);
/* oklch */ color: oklch(18.1% 0.056 257.4);
Tailwind
colors: {
  custom: {
    50: '#484f63',
    500: '#02112a',
    950: '#000000',
  },
}
SCSS
$custom: #02112a;
$custom-light: #484f63;
$custom-dark: #000000;
JSON
{
  "hex": "#02112a",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 42
  },
  "hsl": {
    "h": 217.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18116,
    "c": 0.05623,
    "h": 257.4
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#02112A
secondary
#6F4F19
accent
#AF29FF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #02112A

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

Preview Lab → · Contrast checker → · Palette generator →

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