#05271B#05271B

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

Color values

HEX#05271B
RGBrgb(5, 39, 27)
HSLhsl(159, 77%, 9%)
HSVhsv(159, 87%, 15%)
CMYKcmyk(87.2%, 0%, 30.8%, 84.7%)
CIE-LABlab(13.00, -15.95, 4.45)
CIE-LCHlch(13.00, 16.56, 164.42°)
OKLaboklab(24.44% -0.044 0.0114)
OKLCHoklch(24.44% 0.045 165.5)
XYZxyz(0.9858, 1.5623, 1.2863)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05271B #270511
analogous
#05270A #05271B #052227
triadic
#05271B #1B0527 #271B05
tetradic
#05271B #0A0527 #270511 #222705
square
#05271B #0A0527 #270511 #222705
split-complementary
#05271B #270522 #270A05
monochromatic
#031B13 #031B13 #05271B #0C5D41 #139366

Accessibility & contrast

On white

16.00
#05271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05271B
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05271B#FFFFFF#000000##FFFFFF
##05271B1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05271b;
/* rgb */ color: rgb(5, 39, 27);
/* oklch */ color: oklch(24.4% 0.045 165.5);
Tailwind
colors: {
  custom: {
    50: '#4a6157',
    500: '#05271b',
    950: '#000000',
  },
}
SCSS
$custom: #05271b;
$custom-light: #4a6157;
$custom-dark: #000000;
JSON
{
  "hex": "#05271b",
  "rgb": {
    "r": 5,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 158.824,
    "s": 77.273,
    "l": 8.627
  },
  "oklch": {
    "l": 0.24438,
    "c": 0.04545,
    "h": 165.5
  },
  "luminance": 0.01562
}

Semantic roles & 50–950 ramp

primary
#05271B
secondary
#691F39
accent
#3478F4
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #05271B

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

Preview Lab → · Contrast checker → · Palette generator →

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