#042C1F#042C1F

#042C1F is a dark, muted teal. Relative luminance 0.019; OKLCH L 26.2% C 0.050 H 166.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#042C1F
RGBrgb(4, 44, 31)
HSLhsl(161, 83%, 9%)
HSVhsv(161, 91%, 17%)
CMYKcmyk(90.9%, 0%, 29.5%, 82.7%)
CIE-LABlab(15.09, -17.67, 4.58)
CIE-LCHlch(15.09, 18.25, 165.48°)
OKLaboklab(26.19% -0.0488 0.0117)
OKLCHoklch(26.19% 0.05 166.5)
XYZxyz(1.1979, 1.9260, 1.6047)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042C1F #2C0411
analogous
#042C0B #042C1F #04252C
triadic
#042C1F #1F042C #2C1F04
tetradic
#042C1F #0B042C #2C0411 #252C04
square
#042C1F #0B042C #2C0411 #252C04
split-complementary
#042C1F #2C0425 #2C0B04
monochromatic
#031C14 #031C14 #042C1F #096447 #0E9C6E

Accessibility & contrast

On white

15.16
#042C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#042C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042C1F
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042C1F#FFFFFF#000000##FFFFFF
##042C1F1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B281E
Deuteranopia (green-blind)
#262420
Tritanopia (blue-blind)
#002C28
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #042c1f;
/* rgb */ color: rgb(4, 44, 31);
/* oklch */ color: oklch(26.2% 0.050 166.5);
Tailwind
colors: {
  custom: {
    50: '#4b655a',
    500: '#042c1f',
    950: '#000000',
  },
}
SCSS
$custom: #042c1f;
$custom-light: #4b655a;
$custom-dark: #000000;
JSON
{
  "hex": "#042c1f",
  "rgb": {
    "r": 4,
    "g": 44,
    "b": 31
  },
  "hsl": {
    "h": 160.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.26185,
    "c": 0.05014,
    "h": 166.5
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#042C1F
secondary
#6F1D38
accent
#2E70FA
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010503
muted
#777A78

Preview Lab

Preview with #042C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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