#042831#042831

#042831 is a dark, muted cyan. Relative luminance 0.018; OKLCH L 25.7% C 0.043 H 218.4°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#042831
RGBrgb(4, 40, 49)
HSLhsl(192, 85%, 10%)
HSVhsv(192, 92%, 19%)
CMYKcmyk(91.8%, 18.4%, 0%, 80.8%)
CIE-LABlab(14.20, -8.71, -9.48)
CIE-LCHlch(14.20, 12.87, 227.43°)
OKLaboklab(25.69% -0.0334 -0.0265)
OKLCHoklch(25.69% 0.043 218.4)
XYZxyz(1.3630, 1.7650, 3.1740)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042831 #310D04
analogous
#043123 #042831 #041131
triadic
#042831 #310428 #283104
tetradic
#042831 #230431 #310D04 #113104
square
#042831 #230431 #310D04 #113104
split-complementary
#042831 #310411 #312304
monochromatic
#02171C #02171C #042831 #09566A #0D84A2

Accessibility & contrast

On white

15.52
#042831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#042831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042831
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042831#FFFFFF#000000##FFFFFF
##0428311.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222731
Deuteranopia (green-blind)
#1C2231
Tritanopia (blue-blind)
#002B2B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #042831;
/* rgb */ color: rgb(4, 40, 49);
/* oklch */ color: oklch(25.7% 0.043 218.4);
Tailwind
colors: {
  custom: {
    50: '#4c6269',
    500: '#042831',
    950: '#000000',
  },
}
SCSS
$custom: #042831;
$custom-light: #4c6269;
$custom-dark: #000000;
JSON
{
  "hex": "#042831",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 49
  },
  "hsl": {
    "h": 192,
    "s": 84.906,
    "l": 10.392
  },
  "oklch": {
    "l": 0.25685,
    "c": 0.04267,
    "h": 218.4
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#042831
secondary
#732F1D
accent
#562DFB
background
#F4F5F6
surface
#E7EAEB
border
#C3C6C6
text
#010506
muted
#77797A

Preview Lab

Preview with #042831

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

Preview Lab → · Contrast checker → · Palette generator →

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