#02271E#02271E

#02271E is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.4% C 0.045 H 172.7°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#02271E
RGBrgb(2, 39, 30)
HSLhsl(165, 90%, 8%)
HSVhsv(165, 95%, 15%)
CMYKcmyk(94.9%, 0%, 23.1%, 84.7%)
CIE-LABlab(12.97, -15.87, 2.25)
CIE-LCHlch(12.97, 16.02, 171.92°)
OKLaboklab(24.41% -0.0446 0.0057)
OKLCHoklch(24.41% 0.045 172.7)
XYZxyz(0.9848, 1.5576, 1.4768)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02271E #27020B
analogous
#02270B #02271E #021D27
triadic
#02271E #1E0227 #271E02
tetradic
#02271E #0B0227 #27020B #1D2702
square
#02271E #0B0227 #27020B #1D2702
split-complementary
#02271E #27021D #270B02
monochromatic
#011D16 #011D16 #02271E #05614B #089B78

Accessibility & contrast

On white

16.01
#02271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #02271E
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02271E#FFFFFF#000000##FFFFFF
##02271E1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241E
Deuteranopia (green-blind)
#20201F
Tritanopia (blue-blind)
#002824
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #02271e;
/* rgb */ color: rgb(2, 39, 30);
/* oklch */ color: oklch(24.4% 0.045 172.7);
Tailwind
colors: {
  custom: {
    50: '#496159',
    500: '#02271e',
    950: '#000000',
  },
}
SCSS
$custom: #02271e;
$custom-light: #496159;
$custom-dark: #000000;
JSON
{
  "hex": "#02271e",
  "rgb": {
    "r": 2,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 165.405,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.24409,
    "c": 0.04493,
    "h": 172.7
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#02271E
secondary
#6C182D
accent
#295DFF
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #02271E

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

Preview Lab → · Contrast checker → · Palette generator →

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