#02271C#02271C

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

Color values

HEX#02271C
RGBrgb(2, 39, 28)
HSLhsl(162, 90%, 8%)
HSVhsv(162, 95%, 15%)
CMYKcmyk(94.9%, 0%, 28.2%, 84.7%)
CIE-LABlab(12.91, -16.52, 3.59)
CIE-LCHlch(12.91, 16.91, 167.74°)
OKLaboklab(24.34% -0.0458 0.0092)
OKLCHoklch(24.34% 0.047 168.7)
XYZxyz(0.9600, 1.5477, 1.3465)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02271C #27020D
analogous
#022709 #02271C #021F27
triadic
#02271C #1C0227 #271C02
tetradic
#02271C #090227 #27020D #1F2702
square
#02271C #090227 #27020D #1F2702
split-complementary
#02271C #27021F #270902
monochromatic
#011D15 #011D15 #02271C #056146 #089B70

Accessibility & contrast

On white

16.04
#02271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02271C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02271C#FFFFFF#000000##FFFFFF
##02271C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #02271c;
/* rgb */ color: rgb(2, 39, 28);
/* oklch */ color: oklch(24.3% 0.047 168.7);
Tailwind
colors: {
  custom: {
    50: '#486158',
    500: '#02271c',
    950: '#000000',
  },
}
SCSS
$custom: #02271c;
$custom-light: #486158;
$custom-dark: #000000;
JSON
{
  "hex": "#02271c",
  "rgb": {
    "r": 2,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 162.162,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.24339,
    "c": 0.04673,
    "h": 168.7
  },
  "luminance": 0.01548
}

Semantic roles & 50–950 ramp

primary
#02271C
secondary
#6C1831
accent
#2968FF
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #02271C

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

Preview Lab → · Contrast checker → · Palette generator →

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