#02163B#02163B

#02163B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.077 H 259.8°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#02163B
RGBrgb(2, 22, 59)
HSLhsl(219, 93%, 12%)
HSVhsv(219, 97%, 23%)
CMYKcmyk(96.6%, 62.7%, 0%, 76.9%)
CIE-LABlab(8.15, 9.04, -26.22)
CIE-LCHlch(8.15, 27.74, 289.03°)
OKLaboklab(21.12% -0.0136 -0.0757)
OKLCHoklch(21.12% 0.077 259.8)
XYZxyz(1.1011, 0.9023, 4.2530)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02163B #3B2702
analogous
#02333B #02163B #0A023B
triadic
#02163B #3B0216 #163B02
tetradic
#02163B #3B0233 #3B2702 #023B0A
square
#02163B #3B0233 #3B2702 #023B0A
split-complementary
#02163B #3B0A02 #333B02
monochromatic
#010B1E #010B1E #02163B #042C76 #0642B1

Accessibility & contrast

On white

17.79
#02163B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#02163B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02163B
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02163B#FFFFFF#000000##FFFFFF
##02163B1.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B3C
Deuteranopia (green-blind)
#00153A
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #02163b;
/* rgb */ color: rgb(2, 22, 59);
/* oklch */ color: oklch(21.1% 0.077 259.8);
Tailwind
colors: {
  custom: {
    50: '#4e5271',
    500: '#02163b',
    950: '#000000',
  },
}
SCSS
$custom: #02163b;
$custom-light: #4e5271;
$custom-dark: #000000;
JSON
{
  "hex": "#02163b",
  "rgb": {
    "r": 2,
    "g": 22,
    "b": 59
  },
  "hsl": {
    "h": 218.947,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21121,
    "c": 0.07696,
    "h": 259.8
  },
  "luminance": 0.00902
}

Semantic roles & 50–950 ramp

primary
#02163B
secondary
#7E5B1A
accent
#B429FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #02163B

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

Preview Lab → · Contrast checker → · Palette generator →

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