#02173A#02173A

#02173A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.074 H 258.7°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#02173A
RGBrgb(2, 23, 58)
HSLhsl(218, 93%, 12%)
HSVhsv(218, 97%, 23%)
CMYKcmyk(96.6%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.40, 7.74, -25.09)
CIE-LCHlch(8.40, 26.26, 287.14°)
OKLaboklab(21.29% -0.0145 -0.0724)
OKLCHoklch(21.29% 0.074 258.7)
XYZxyz(1.0949, 0.9310, 4.1242)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02173A #3A2502
analogous
#02333A #02173A #09023A
triadic
#02173A #3A0217 #173A02
tetradic
#02173A #3A0233 #3A2502 #023A09
square
#02173A #3A0233 #3A2502 #023A09
split-complementary
#02173A #3A0902 #333A02
monochromatic
#010C1E #010C1E #02173A #042E75 #0646B0

Accessibility & contrast

On white

17.70
#02173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02173A
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02173A#FFFFFF#000000##FFFFFF
##02173A1.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3B
Deuteranopia (green-blind)
#001639
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #02173a;
/* rgb */ color: rgb(2, 23, 58);
/* oklch */ color: oklch(21.3% 0.074 258.7);
Tailwind
colors: {
  custom: {
    50: '#4e5370',
    500: '#02173a',
    950: '#000000',
  },
}
SCSS
$custom: #02173a;
$custom-light: #4e5370;
$custom-dark: #000000;
JSON
{
  "hex": "#02173a",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 217.5,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21286,
    "c": 0.07383,
    "h": 258.7
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#02173A
secondary
#7D581A
accent
#AF29FF
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #02173A

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

Preview Lab → · Contrast checker → · Palette generator →

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