#02271B#02271B

#02271B is a very dark, muted teal. Relative luminance 0.015; OKLCH L 24.3% C 0.048 H 166.8°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#02271B
RGBrgb(2, 39, 27)
HSLhsl(161, 90%, 8%)
HSVhsv(161, 95%, 15%)
CMYKcmyk(94.9%, 0%, 30.8%, 84.7%)
CIE-LABlab(12.88, -16.84, 4.26)
CIE-LCHlch(12.88, 17.37, 165.80°)
OKLaboklab(24.31% -0.0464 0.0109)
OKLCHoklch(24.31% 0.048 166.8)
XYZxyz(0.9483, 1.5430, 1.2845)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02271B #27020E
analogous
#022709 #02271B #022027
triadic
#02271B #1B0227 #271B02
tetradic
#02271B #090227 #27020E #202702
square
#02271B #090227 #27020E #202702
split-complementary
#02271B #270220 #270902
monochromatic
#011D14 #011D14 #02271B #056143 #089B6C

Accessibility & contrast

On white

16.05
#02271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#02271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02271B
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02271B#FFFFFF#000000##FFFFFF
##02271B1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26231A
Deuteranopia (green-blind)
#21201C
Tritanopia (blue-blind)
#002724
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #02271b;
/* rgb */ color: rgb(2, 39, 27);
/* oklch */ color: oklch(24.3% 0.048 166.8);
Tailwind
colors: {
  custom: {
    50: '#486157',
    500: '#02271b',
    950: '#000000',
  },
}
SCSS
$custom: #02271b;
$custom-light: #486157;
$custom-dark: #000000;
JSON
{
  "hex": "#02271b",
  "rgb": {
    "r": 2,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 160.541,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.24305,
    "c": 0.0477,
    "h": 166.8
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#02271B
secondary
#6C1834
accent
#296EFF
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #02271B

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

Preview Lab → · Contrast checker → · Palette generator →

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