#042F1C#042F1C

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

Color values

HEX#042F1C
RGBrgb(4, 47, 28)
HSLhsl(153, 84%, 10%)
HSVhsv(153, 91%, 18%)
CMYKcmyk(91.5%, 0%, 40.4%, 81.6%)
CIE-LABlab(16.22, -20.03, 8.20)
CIE-LCHlch(16.22, 21.65, 157.74°)
OKLaboklab(27.08% -0.0543 0.0207)
OKLCHoklch(27.08% 0.058 159.1)
XYZxyz(1.2761, 2.1425, 1.4447)
Luminance0.0214 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042F1C #2F0417
analogous
#042F06 #042F1C #042D2F
triadic
#042F1C #1C042F #2F1C04
tetradic
#042F1C #06042F #2F0417 #2D2F04
square
#042F1C #06042F #2F0417 #2D2F04
split-complementary
#042F1C #2F042D #2F0604
monochromatic
#021C11 #021C11 #042F1C #09673E #0EA05F

Accessibility & contrast

On white

14.70
#042F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042F1C
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042F1C#FFFFFF#000000##FFFFFF
##042F1C1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #042f1c;
/* rgb */ color: rgb(4, 47, 28);
/* oklch */ color: oklch(27.1% 0.058 159.1);
Tailwind
colors: {
  custom: {
    50: '#4c6858',
    500: '#042f1c',
    950: '#000000',
  },
}
SCSS
$custom: #042f1c;
$custom-light: #4c6858;
$custom-dark: #000000;
JSON
{
  "hex": "#042f1c",
  "rgb": {
    "r": 4,
    "g": 47,
    "b": 28
  },
  "hsl": {
    "h": 153.488,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.27084,
    "c": 0.05814,
    "h": 159.1
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#042F1C
secondary
#721D43
accent
#2D88FB
background
#F4F6F5
surface
#E7EBE9
border
#C3C6C5
text
#010603
muted
#777A78

Preview Lab

Preview with #042F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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