#042837#042837

#042837 is a dark, muted cyan. Relative luminance 0.018; OKLCH L 26.0% C 0.048 H 230.7°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#042837
RGBrgb(4, 40, 55)
HSLhsl(198, 86%, 12%)
HSVhsv(198, 93%, 22%)
CMYKcmyk(92.7%, 27.3%, 0%, 78.4%)
CIE-LABlab(14.51, -6.13, -13.25)
CIE-LCHlch(14.51, 14.60, 245.17°)
OKLaboklab(26.03% -0.0306 -0.0373)
OKLCHoklch(26.03% 0.048 230.7)
XYZxyz(1.4982, 1.8190, 3.8858)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042837 #371304
analogous
#04372D #042837 #040F37
triadic
#042837 #370428 #283704
tetradic
#042837 #2D0437 #371304 #0F3704
square
#042837 #2D0437 #371304 #0F3704
split-complementary
#042837 #37040F #372D04
monochromatic
#02151D #02151D #042837 #085170 #0C7BA9

Accessibility & contrast

On white

15.40
#042837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#042837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042837
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042837#FFFFFF#000000##FFFFFF
##0428371.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202738
Deuteranopia (green-blind)
#192337
Tritanopia (blue-blind)
#002C2D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042837;
/* rgb */ color: rgb(4, 40, 55);
/* oklch */ color: oklch(26.0% 0.048 230.7);
Tailwind
colors: {
  custom: {
    50: '#4e616d',
    500: '#042837',
    950: '#000000',
  },
}
SCSS
$custom: #042837;
$custom-light: #4e616d;
$custom-dark: #000000;
JSON
{
  "hex": "#042837",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 55
  },
  "hsl": {
    "h": 197.647,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.26031,
    "c": 0.04826,
    "h": 230.7
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#042837
secondary
#79391E
accent
#692BFD
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#020507
muted
#78797A

Preview Lab

Preview with #042837

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

Preview Lab → · Contrast checker → · Palette generator →

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