#05402A#05402A

#05402A is a dark, moderate teal. Relative luminance 0.039; OKLCH L 33.0% C 0.069 H 161.9°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#05402A
RGBrgb(5, 64, 42)
HSLhsl(158, 86%, 14%)
HSVhsv(158, 92%, 25%)
CMYKcmyk(92.2%, 0%, 34.4%, 74.9%)
CIE-LABlab(23.22, -24.16, 8.49)
CIE-LCHlch(23.22, 25.61, 160.63°)
OKLaboklab(32.98% -0.0658 0.0216)
OKLCHoklch(32.98% 0.069 161.9)
XYZxyz(2.3136, 3.8659, 2.8143)
Luminance0.0387 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05402A #40051B
analogous
#05400C #05402A #053840
triadic
#05402A #2A0540 #402A05
tetradic
#05402A #0C0540 #40051B #384005
square
#05402A #0C0540 #40051B #384005
split-complementary
#05402A #400538 #400C05
monochromatic
#021C13 #021C13 #05402A #09794F #0EB275

Accessibility & contrast

On white

11.84
#05402A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#05402A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05402A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05402A#FFFFFF#000000##FFFFFF
##05402A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3A29
Deuteranopia (green-blind)
#38352B
Tritanopia (blue-blind)
#00403A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #05402a;
/* rgb */ color: rgb(5, 64, 42);
/* oklch */ color: oklch(33.0% 0.069 161.9);
Tailwind
colors: {
  custom: {
    50: '#517563',
    500: '#05402a',
    950: '#000000',
  },
}
SCSS
$custom: #05402a;
$custom-light: #517563;
$custom-dark: #000000;
JSON
{
  "hex": "#05402a",
  "rgb": {
    "r": 5,
    "g": 64,
    "b": 42
  },
  "hsl": {
    "h": 157.627,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.06924,
    "h": 161.9
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#05402A
secondary
#812044
accent
#2C7AFC
background
#F4F7F5
surface
#E7EDEA
border
#C3C8C6
text
#030805
muted
#787B79

Preview Lab

Preview with #05402A

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

Preview Lab → · Contrast checker → · Palette generator →

#05402A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva