#08271F#08271F

#08271F is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.7% C 0.040 H 172.8°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#08271F
RGBrgb(8, 39, 31)
HSLhsl(165, 66%, 9%)
HSVhsv(165, 79%, 15%)
CMYKcmyk(79.5%, 0%, 20.5%, 84.7%)
CIE-LABlab(13.24, -13.87, 1.96)
CIE-LCHlch(13.24, 14.01, 171.97°)
OKLaboklab(24.71% -0.0392 0.005)
OKLCHoklch(24.71% 0.04 172.8)
XYZxyz(1.0729, 1.6015, 1.5486)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08271F #270810
analogous
#082710 #08271F #082027
triadic
#08271F #1F0827 #271F08
tetradic
#08271F #100827 #270810 #202708
square
#08271F #100827 #270810 #202708
split-complementary
#08271F #270820 #271008
monochromatic
#051914 #051914 #08271F #125A47 #1D8D70

Accessibility & contrast

On white

15.90
#08271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#08271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08271F
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08271F#FFFFFF#000000##FFFFFF
##08271F1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25241F
Deuteranopia (green-blind)
#212120
Tritanopia (blue-blind)
#002725
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #08271f;
/* rgb */ color: rgb(8, 39, 31);
/* oklch */ color: oklch(24.7% 0.040 172.8);
Tailwind
colors: {
  custom: {
    50: '#4c615a',
    500: '#08271f',
    950: '#000000',
  },
}
SCSS
$custom: #08271f;
$custom-light: #4c615a;
$custom-dark: #000000;
JSON
{
  "hex": "#08271f",
  "rgb": {
    "r": 8,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 164.516,
    "s": 65.957,
    "l": 9.216
  },
  "oklch": {
    "l": 0.24709,
    "c": 0.03952,
    "h": 172.8
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#08271F
secondary
#652536
accent
#3F6BE9
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#010503
muted
#777978

Preview Lab

Preview with #08271F

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

Preview Lab → · Contrast checker → · Palette generator →

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