#02173B#02173B

#02173B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.075 H 259.1°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#02173B
RGBrgb(2, 23, 59)
HSLhsl(218, 93%, 12%)
HSVhsv(218, 97%, 23%)
CMYKcmyk(96.6%, 61%, 0%, 76.9%)
CIE-LABlab(8.49, 8.23, -25.67)
CIE-LCHlch(8.49, 26.95, 287.78°)
OKLaboklab(21.38% -0.0143 -0.0741)
OKLCHoklch(21.38% 0.075 259.1)
XYZxyz(1.1206, 0.9413, 4.2595)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02173B #3B2602
analogous
#02343B #02173B #0A023B
triadic
#02173B #3B0217 #173B02
tetradic
#02173B #3B0234 #3B2602 #023B0A
square
#02173B #3B0234 #3B2602 #023B0A
split-complementary
#02173B #3B0A02 #343B02
monochromatic
#010C1E #010C1E #02173B #042E76 #0645B1

Accessibility & contrast

On white

17.67
#02173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#02173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02173B
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02173B#FFFFFF#000000##FFFFFF
##02173B1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02173b;
/* rgb */ color: rgb(2, 23, 59);
/* oklch */ color: oklch(21.4% 0.075 259.1);
Tailwind
colors: {
  custom: {
    50: '#4e5371',
    500: '#02173b',
    950: '#000000',
  },
}
SCSS
$custom: #02173b;
$custom-light: #4e5371;
$custom-dark: #000000;
JSON
{
  "hex": "#02173b",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 217.895,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21383,
    "c": 0.07546,
    "h": 259.1
  },
  "luminance": 0.00941
}

Semantic roles & 50–950 ramp

primary
#02173B
secondary
#7E5A1A
accent
#B029FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #02173B

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

Preview Lab → · Contrast checker → · Palette generator →

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