#042F1F#042F1F

#042F1F is a dark, muted teal. Relative luminance 0.022; OKLCH L 27.2% C 0.055 H 163.1°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#042F1F
RGBrgb(4, 47, 31)
HSLhsl(158, 84%, 10%)
HSVhsv(158, 91%, 18%)
CMYKcmyk(91.5%, 0%, 34%, 81.6%)
CIE-LABlab(16.29, -19.20, 6.25)
CIE-LCHlch(16.29, 20.19, 161.96°)
OKLaboklab(27.17% -0.0525 0.0159)
OKLCHoklch(27.17% 0.055 163.1)
XYZxyz(1.3138, 2.1576, 1.6433)
Luminance0.0216 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F1F #2F0414
analogous
#042F09 #042F1F #042A2F
triadic
#042F1F #1F042F #2F1F04
tetradic
#042F1F #09042F #2F0414 #2A2F04
square
#042F1F #09042F #2F0414 #2A2F04
split-complementary
#042F1F #2F042A #2F0904
monochromatic
#021C13 #021C13 #042F1F #096744 #0EA069

Accessibility & contrast

On white

14.67
#042F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F1F
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F1F#FFFFFF#000000##FFFFFF
##042F1F1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2B1E
Deuteranopia (green-blind)
#292720
Tritanopia (blue-blind)
#002F2B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #042f1f;
/* rgb */ color: rgb(4, 47, 31);
/* oklch */ color: oklch(27.2% 0.055 163.1);
Tailwind
colors: {
  custom: {
    50: '#4c685a',
    500: '#042f1f',
    950: '#000000',
  },
}
SCSS
$custom: #042f1f;
$custom-light: #4c685a;
$custom-dark: #000000;
JSON
{
  "hex": "#042f1f",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 31
  },
  "hsl": {
    "h": 157.674,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27171,
    "c": 0.05487,
    "h": 163.1
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#042F1F
secondary
#721D3D
accent
#2D7AFB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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