#02172F#02172F

#02172F is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.3% C 0.056 H 252.4°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#02172F
RGBrgb(2, 23, 47)
HSLhsl(212, 92%, 10%)
HSVhsv(212, 96%, 18%)
CMYKcmyk(95.7%, 51.1%, 0%, 81.6%)
CIE-LABlab(7.50, 2.24, -18.54)
CIE-LCHlch(7.50, 18.68, 276.88°)
OKLaboklab(20.29% -0.0169 -0.0532)
OKLCHoklch(20.29% 0.056 252.4)
XYZxyz(0.8443, 0.8308, 2.8046)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02172F #2F1A02
analogous
#022E2F #02172F #03022F
triadic
#02172F #2F0217 #172F02
tetradic
#02172F #2F022E #2F1A02 #022F03
square
#02172F #2F022E #2F1A02 #022F03
split-complementary
#02172F #2F0302 #2E2F02
monochromatic
#010E1D #010E1D #02172F #04346A #0750A4

Accessibility & contrast

On white

18.01
#02172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#02172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02172F
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02172F#FFFFFF#000000##FFFFFF
##02172F1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#04152F
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #02172f;
/* rgb */ color: rgb(2, 23, 47);
/* oklch */ color: oklch(20.3% 0.056 252.4);
Tailwind
colors: {
  custom: {
    50: '#4a5367',
    500: '#02172f',
    950: '#000000',
  },
}
SCSS
$custom: #02172f;
$custom-light: #4a5367;
$custom-dark: #000000;
JSON
{
  "hex": "#02172f",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 212,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20294,
    "c": 0.05579,
    "h": 252.4
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#02172F
secondary
#744919
accent
#9B29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #02172F

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

Preview Lab → · Contrast checker → · Palette generator →

#02172F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva