#042817#042817

#042817 is a very dark, muted teal. Relative luminance 0.016; OKLCH L 24.6% C 0.052 H 158.4°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#042817
RGBrgb(4, 40, 23)
HSLhsl(152, 82%, 9%)
HSVhsv(152, 90%, 16%)
CMYKcmyk(90%, 0%, 42.5%, 84.3%)
CIE-LABlab(13.26, -17.92, 7.62)
CIE-LCHlch(13.26, 19.47, 156.97°)
OKLaboklab(24.61% -0.0486 0.0192)
OKLCHoklch(24.61% 0.052 158.4)
XYZxyz(0.9634, 1.6051, 1.0695)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042817 #280415
analogous
#042805 #042817 #042728
triadic
#042817 #170428 #281704
tetradic
#042817 #050428 #280415 #272804
square
#042817 #050428 #280415 #272804
split-complementary
#042817 #280427 #280504
monochromatic
#031C10 #031C10 #042817 #0A6037 #0F9757

Accessibility & contrast

On white

15.90
#042817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#042817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042817
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042817#FFFFFF#000000##FFFFFF
##0428171.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282416
Deuteranopia (green-blind)
#232118
Tritanopia (blue-blind)
#002824
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #042817;
/* rgb */ color: rgb(4, 40, 23);
/* oklch */ color: oklch(24.6% 0.052 158.4);
Tailwind
colors: {
  custom: {
    50: '#4a6254',
    500: '#042817',
    950: '#000000',
  },
}
SCSS
$custom: #042817;
$custom-light: #4a6254;
$custom-dark: #000000;
JSON
{
  "hex": "#042817",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 23
  },
  "hsl": {
    "h": 151.667,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.24608,
    "c": 0.05224,
    "h": 158.4
  },
  "luminance": 0.01605
}

Semantic roles & 50–950 ramp

primary
#042817
secondary
#6B1D42
accent
#308EF8
background
#F4F5F4
surface
#E7EAE7
border
#C3C6C3
text
#010502
muted
#777978

Preview Lab

Preview with #042817

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

Preview Lab → · Contrast checker → · Palette generator →

#042817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva