#042D1F#042D1F

#042D1F is a dark, muted teal. Relative luminance 0.020; OKLCH L 26.5% C 0.052 H 165.3°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#042D1F
RGBrgb(4, 45, 31)
HSLhsl(160, 84%, 10%)
HSVhsv(160, 91%, 18%)
CMYKcmyk(91.1%, 0%, 31.1%, 82.4%)
CIE-LABlab(15.49, -18.19, 5.14)
CIE-LCHlch(15.49, 18.90, 164.22°)
OKLaboklab(26.51% -0.05 0.0131)
OKLCHoklch(26.51% 0.052 165.3)
XYZxyz(1.2356, 2.0014, 1.6172)
Luminance0.0200 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042D1F #2D0412
analogous
#042D0B #042D1F #04272D
triadic
#042D1F #1F042D #2D1F04
tetradic
#042D1F #0B042D #2D0412 #272D04
square
#042D1F #0B042D #2D0412 #272D04
split-complementary
#042D1F #2D0427 #2D0B04
monochromatic
#021C13 #021C13 #042D1F #096546 #0E9D6C

Accessibility & contrast

On white

15.00
#042D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#042D1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042D1F
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042D1F#FFFFFF#000000##FFFFFF
##042D1F1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C291E
Deuteranopia (green-blind)
#272520
Tritanopia (blue-blind)
#002D29
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #042d1f;
/* rgb */ color: rgb(4, 45, 31);
/* oklch */ color: oklch(26.5% 0.052 165.3);
Tailwind
colors: {
  custom: {
    50: '#4b665a',
    500: '#042d1f',
    950: '#000000',
  },
}
SCSS
$custom: #042d1f;
$custom-light: #4b665a;
$custom-dark: #000000;
JSON
{
  "hex": "#042d1f",
  "rgb": {
    "r": 4,
    "g": 45,
    "b": 31
  },
  "hsl": {
    "h": 159.512,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.26514,
    "c": 0.05171,
    "h": 165.3
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#042D1F
secondary
#701D39
accent
#2E74FA
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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