#042F28#042F28

#042F28 is a dark, muted teal. Relative luminance 0.022; OKLCH L 27.5% C 0.047 H 179.0°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#042F28
RGBrgb(4, 47, 40)
HSLhsl(170, 84%, 10%)
HSVhsv(170, 91%, 18%)
CMYKcmyk(91.5%, 0%, 14.9%, 81.6%)
CIE-LABlab(16.56, -16.36, 0.40)
CIE-LCHlch(16.56, 16.37, 178.61°)
OKLaboklab(27.48% -0.0471 0.0008)
OKLCHoklch(27.48% 0.047 179)
XYZxyz(1.4494, 2.2119, 2.3576)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F28 #2F040B
analogous
#042F13 #042F28 #04202F
triadic
#042F28 #28042F #2F2804
tetradic
#042F28 #13042F #2F040B #202F04
square
#042F28 #13042F #2F040B #202F04
split-complementary
#042F28 #2F0420 #2F1304
monochromatic
#021C18 #021C18 #042F28 #096758 #0EA088

Accessibility & contrast

On white

14.56
#042F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#042F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F28
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F28#FFFFFF#000000##FFFFFF
##042F281.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2B28
Deuteranopia (green-blind)
#272729
Tritanopia (blue-blind)
#00302D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #042f28;
/* rgb */ color: rgb(4, 47, 40);
/* oklch */ color: oklch(27.5% 0.047 179.0);
Tailwind
colors: {
  custom: {
    50: '#4c6861',
    500: '#042f28',
    950: '#000000',
  },
}
SCSS
$custom: #042f28;
$custom-light: #4c6861;
$custom-dark: #000000;
JSON
{
  "hex": "#042f28",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 40
  },
  "hsl": {
    "h": 170.233,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.2748,
    "c": 0.04709,
    "h": 179
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#042F28
secondary
#721D2B
accent
#2D4FFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010605
muted
#777A79

Preview Lab

Preview with #042F28

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

Preview Lab → · Contrast checker → · Palette generator →

#042F28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva