#042F1E#042F1E

#042F1E is a dark, muted teal. Relative luminance 0.022; OKLCH L 27.1% C 0.056 H 161.7°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#042F1E
RGBrgb(4, 47, 30)
HSLhsl(156, 84%, 10%)
HSVhsv(156, 91%, 18%)
CMYKcmyk(91.5%, 0%, 36.2%, 81.6%)
CIE-LABlab(16.27, -19.49, 6.90)
CIE-LCHlch(16.27, 20.67, 160.49°)
OKLaboklab(27.14% -0.0531 0.0175)
OKLCHoklch(27.14% 0.056 161.7)
XYZxyz(1.3008, 2.1524, 1.5749)
Luminance0.0215 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F1E #2F0415
analogous
#042F08 #042F1E #042B2F
triadic
#042F1E #1E042F #2F1E04
tetradic
#042F1E #08042F #2F0415 #2B2F04
square
#042F1E #08042F #2F0415 #2B2F04
split-complementary
#042F1E #2F042B #2F0804
monochromatic
#021C12 #021C12 #042F1E #096742 #0EA066

Accessibility & contrast

On white

14.68
#042F1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#042F1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F1E
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F1E#FFFFFF#000000##FFFFFF
##042F1E1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2B1D
Deuteranopia (green-blind)
#29271F
Tritanopia (blue-blind)
#002F2A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f1e;
/* rgb */ color: rgb(4, 47, 30);
/* oklch */ color: oklch(27.1% 0.056 161.7);
Tailwind
colors: {
  custom: {
    50: '#4c6859',
    500: '#042f1e',
    950: '#000000',
  },
}
SCSS
$custom: #042f1e;
$custom-light: #4c6859;
$custom-dark: #000000;
JSON
{
  "hex": "#042f1e",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 30
  },
  "hsl": {
    "h": 156.279,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27141,
    "c": 0.05594,
    "h": 161.7
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#042F1E
secondary
#721D3F
accent
#2D7EFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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