#02151F#02151F

#02151F is a very dark, muted cyan. Relative luminance 0.006; OKLCH L 18.5% C 0.034 H 232.3°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#02151F
RGBrgb(2, 21, 31)
HSLhsl(201, 88%, 6%)
HSVhsv(201, 94%, 12%)
CMYKcmyk(93.5%, 32.3%, 0%, 87.8%)
CIE-LABlab(5.85, -3.10, -9.09)
CIE-LCHlch(5.85, 9.61, 251.19°)
OKLaboklab(18.47% -0.0206 -0.0267)
OKLCHoklch(18.47% 0.034 232.3)
XYZxyz(0.5404, 0.6481, 1.3927)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02151F #1F0C02
analogous
#021F1B #02151F #02071F
triadic
#02151F #1F0215 #151F02
tetradic
#02151F #1B021F #1F0C02 #071F02
square
#02151F #1B021F #1F0C02 #071F02
split-complementary
#02151F #1F0207 #1F1B02
monochromatic
#02131D #02131D #02151F #063C58 #096392

Accessibility & contrast

On white

18.59
#02151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#02151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02151F
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02151F#FFFFFF#000000##FFFFFF
##02151F1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10151F
Deuteranopia (green-blind)
#0C121F
Tritanopia (blue-blind)
#001818
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #02151f;
/* rgb */ color: rgb(2, 21, 31);
/* oklch */ color: oklch(18.5% 0.034 232.3);
Tailwind
colors: {
  custom: {
    50: '#47525a',
    500: '#02151f',
    950: '#000000',
  },
}
SCSS
$custom: #02151f;
$custom-light: #47525a;
$custom-dark: #000000;
JSON
{
  "hex": "#02151f",
  "rgb": {
    "r": 2,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 200.69,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.18468,
    "c": 0.03376,
    "h": 232.3
  },
  "luminance": 0.00648
}

Semantic roles & 50–950 ramp

primary
#02151F
secondary
#653218
accent
#732AFE
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000203
muted
#777878

Preview Lab

Preview with #02151F

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

Preview Lab → · Contrast checker → · Palette generator →

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