#02163A#02163A

#02163A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.075 H 259.5°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#02163A
RGBrgb(2, 22, 58)
HSLhsl(219, 93%, 12%)
HSVhsv(219, 97%, 23%)
CMYKcmyk(96.6%, 62.1%, 0%, 77.3%)
CIE-LABlab(8.06, 8.55, -25.65)
CIE-LCHlch(8.06, 27.04, 288.43°)
OKLaboklab(21.02% -0.0137 -0.0741)
OKLCHoklch(21.02% 0.075 259.5)
XYZxyz(1.0754, 0.8921, 4.1177)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02163A #3A2602
analogous
#02323A #02163A #0A023A
triadic
#02163A #3A0216 #163A02
tetradic
#02163A #3A0232 #3A2602 #023A0A
square
#02163A #3A0232 #3A2602 #023A0A
split-complementary
#02163A #3A0A02 #323A02
monochromatic
#010B1E #010B1E #02163A #042C75 #0643B0

Accessibility & contrast

On white

17.82
#02163A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02163A
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02163A#FFFFFF#000000##FFFFFF
##02163A1.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #02163a;
/* rgb */ color: rgb(2, 22, 58);
/* oklch */ color: oklch(21.0% 0.075 259.5);
Tailwind
colors: {
  custom: {
    50: '#4e5270',
    500: '#02163a',
    950: '#000000',
  },
}
SCSS
$custom: #02163a;
$custom-light: #4e5270;
$custom-dark: #000000;
JSON
{
  "hex": "#02163a",
  "rgb": {
    "r": 2,
    "g": 22,
    "b": 58
  },
  "hsl": {
    "h": 218.571,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21022,
    "c": 0.07534,
    "h": 259.5
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#02163A
secondary
#7D5A1A
accent
#B229FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #02163A

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

Preview Lab → · Contrast checker → · Palette generator →

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