#042E1B#042E1B

#042E1B is a dark, muted teal. Relative luminance 0.021; OKLCH L 26.7% C 0.058 H 158.7°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#042E1B
RGBrgb(4, 46, 27)
HSLhsl(153, 84%, 10%)
HSVhsv(153, 91%, 18%)
CMYKcmyk(91.3%, 0%, 41.3%, 82%)
CIE-LABlab(15.79, -19.82, 8.30)
CIE-LCHlch(15.79, 21.48, 157.26°)
OKLaboklab(26.73% -0.0537 0.0209)
OKLCHoklch(26.73% 0.058 158.7)
XYZxyz(1.2248, 2.0588, 1.3695)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042E1B #2E0417
analogous
#042E06 #042E1B #042C2E
triadic
#042E1B #1B042E #2E1B04
tetradic
#042E1B #06042E #2E0417 #2C2E04
square
#042E1B #06042E #2E0417 #2C2E04
split-complementary
#042E1B #2E042C #2E0604
monochromatic
#021C11 #021C11 #042E1B #09663C #0E9F5D

Accessibility & contrast

On white

14.87
#042E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#042E1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042E1B
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042E1B#FFFFFF#000000##FFFFFF
##042E1B1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2A1A
Deuteranopia (green-blind)
#28261C
Tritanopia (blue-blind)
#002E29
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042e1b;
/* rgb */ color: rgb(4, 46, 27);
/* oklch */ color: oklch(26.7% 0.058 158.7);
Tailwind
colors: {
  custom: {
    50: '#4b6757',
    500: '#042e1b',
    950: '#000000',
  },
}
SCSS
$custom: #042e1b;
$custom-light: #4b6757;
$custom-dark: #000000;
JSON
{
  "hex": "#042e1b",
  "rgb": {
    "r": 4,
    "g": 46,
    "b": 27
  },
  "hsl": {
    "h": 152.857,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.26725,
    "c": 0.05763,
    "h": 158.7
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#042E1B
secondary
#711D43
accent
#2E8AFA
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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