#042F1B#042F1B

#042F1B is a dark, muted teal. Relative luminance 0.021; OKLCH L 27.1% C 0.059 H 157.9°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#042F1B
RGBrgb(4, 47, 27)
HSLhsl(152, 84%, 10%)
HSVhsv(152, 91%, 18%)
CMYKcmyk(91.5%, 0%, 42.6%, 81.6%)
CIE-LABlab(16.19, -20.30, 8.85)
CIE-LCHlch(16.19, 22.14, 156.45°)
OKLaboklab(27.06% -0.0549 0.0223)
OKLCHoklch(27.06% 0.059 157.9)
XYZxyz(1.2643, 2.1378, 1.3827)
Luminance0.0214 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F1B #2F0418
analogous
#042F05 #042F1B #042E2F
triadic
#042F1B #1B042F #2F1B04
tetradic
#042F1B #05042F #2F0418 #2E2F04
square
#042F1B #05042F #2F0418 #2E2F04
split-complementary
#042F1B #2F042E #2F0504
monochromatic
#021C10 #021C10 #042F1B #09673B #0EA05C

Accessibility & contrast

On white

14.71
#042F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#042F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042F1B
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F1B#FFFFFF#000000##FFFFFF
##042F1B1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2A1A
Deuteranopia (green-blind)
#29271C
Tritanopia (blue-blind)
#002F2A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f1b;
/* rgb */ color: rgb(4, 47, 27);
/* oklch */ color: oklch(27.1% 0.059 157.9);
Tailwind
colors: {
  custom: {
    50: '#4c6857',
    500: '#042f1b',
    950: '#000000',
  },
}
SCSS
$custom: #042f1b;
$custom-light: #4c6857;
$custom-dark: #000000;
JSON
{
  "hex": "#042f1b",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 27
  },
  "hsl": {
    "h": 152.093,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27057,
    "c": 0.05926,
    "h": 157.9
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#042F1B
secondary
#721D44
accent
#2D8DFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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