#042A1D#042A1D

#042A1D is a dark, muted teal. Relative luminance 0.018; OKLCH L 25.5% C 0.049 H 165.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#042A1D
RGBrgb(4, 42, 29)
HSLhsl(159, 83%, 9%)
HSVhsv(159, 90%, 16%)
CMYKcmyk(90.5%, 0%, 31%, 83.5%)
CIE-LABlab(14.23, -17.22, 4.76)
CIE-LCHlch(14.23, 17.87, 164.54°)
OKLaboklab(25.46% -0.0474 0.0122)
OKLCHoklch(25.46% 0.049 165.6)
XYZxyz(1.0997, 1.7703, 1.4459)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042A1D #2A0411
analogous
#042A0A #042A1D #04242A
triadic
#042A1D #1D042A #2A1D04
tetradic
#042A1D #0A042A #2A0411 #242A04
square
#042A1D #0A042A #2A0411 #242A04
split-complementary
#042A1D #2A0424 #2A0A04
monochromatic
#031C13 #031C13 #042A1D #096244 #0F9A6A

Accessibility & contrast

On white

15.51
#042A1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042A1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042A1D
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042A1D#FFFFFF#000000##FFFFFF
##042A1D1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29261C
Deuteranopia (green-blind)
#24231E
Tritanopia (blue-blind)
#002A26
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042a1d;
/* rgb */ color: rgb(4, 42, 29);
/* oklch */ color: oklch(25.5% 0.049 165.6);
Tailwind
colors: {
  custom: {
    50: '#4a6458',
    500: '#042a1d',
    950: '#000000',
  },
}
SCSS
$custom: #042a1d;
$custom-light: #4a6458;
$custom-dark: #000000;
JSON
{
  "hex": "#042a1d",
  "rgb": {
    "r": 4,
    "g": 42,
    "b": 29
  },
  "hsl": {
    "h": 159.474,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.25459,
    "c": 0.04899,
    "h": 165.6
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#042A1D
secondary
#6D1D38
accent
#2F74F9
background
#F4F5F5
surface
#E7EAE9
border
#C3C6C5
text
#010503
muted
#777978

Preview Lab

Preview with #042A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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