#042B1F#042B1F

#042B1F is a dark, muted teal. Relative luminance 0.019; OKLCH L 25.9% C 0.049 H 167.8°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#042B1F
RGBrgb(4, 43, 31)
HSLhsl(162, 83%, 9%)
HSVhsv(162, 91%, 17%)
CMYKcmyk(90.7%, 0%, 27.9%, 83.1%)
CIE-LABlab(14.69, -17.14, 4.01)
CIE-LCHlch(14.69, 17.60, 166.84°)
OKLaboklab(25.86% -0.0475 0.0102)
OKLCHoklch(25.86% 0.049 167.8)
XYZxyz(1.1611, 1.8524, 1.5924)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042B1F #2B0410
analogous
#042B0C #042B1F #04242B
triadic
#042B1F #1F042B #2B1F04
tetradic
#042B1F #0C042B #2B0410 #242B04
square
#042B1F #0C042B #2B0410 #242B04
split-complementary
#042B1F #2B0424 #2B0C04
monochromatic
#031C14 #031C14 #042B1F #096347 #0E9B70

Accessibility & contrast

On white

15.32
#042B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#042B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042B1F
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042B1F#FFFFFF#000000##FFFFFF
##042B1F1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271E
Deuteranopia (green-blind)
#252420
Tritanopia (blue-blind)
#002B28
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042b1f;
/* rgb */ color: rgb(4, 43, 31);
/* oklch */ color: oklch(25.9% 0.049 167.8);
Tailwind
colors: {
  custom: {
    50: '#4b645a',
    500: '#042b1f',
    950: '#000000',
  },
}
SCSS
$custom: #042b1f;
$custom-light: #4b645a;
$custom-dark: #000000;
JSON
{
  "hex": "#042b1f",
  "rgb": {
    "r": 4,
    "g": 43,
    "b": 31
  },
  "hsl": {
    "h": 161.538,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.25855,
    "c": 0.04858,
    "h": 167.8
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#042B1F
secondary
#6E1D36
accent
#2E6DF9
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010503
muted
#777A78

Preview Lab

Preview with #042B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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