#042839#042839

#042839 is a dark, muted cyan. Relative luminance 0.018; OKLCH L 26.2% C 0.051 H 234.0°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#042839
RGBrgb(4, 40, 57)
HSLhsl(199, 87%, 12%)
HSVhsv(199, 93%, 22%)
CMYKcmyk(93%, 29.8%, 0%, 77.6%)
CIE-LABlab(14.62, -5.25, -14.48)
CIE-LCHlch(14.62, 15.41, 250.07°)
OKLaboklab(26.15% -0.0297 -0.0409)
OKLCHoklch(26.15% 0.051 234)
XYZxyz(1.5471, 1.8386, 4.1434)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042839 #391504
analogous
#043930 #042839 #040E39
triadic
#042839 #390428 #283904
tetradic
#042839 #300439 #391504 #0E3904
square
#042839 #300439 #391504 #0E3904
split-complementary
#042839 #39040E #393004
monochromatic
#02141D #02141D #042839 #085072 #0C78AB

Accessibility & contrast

On white

15.35
#042839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#042839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042839
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042839#FFFFFF#000000##FFFFFF
##0428391.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20283A
Deuteranopia (green-blind)
#182339
Tritanopia (blue-blind)
#002C2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #042839;
/* rgb */ color: rgb(4, 40, 57);
/* oklch */ color: oklch(26.2% 0.051 234.0);
Tailwind
colors: {
  custom: {
    50: '#4e616f',
    500: '#042839',
    950: '#000000',
  },
}
SCSS
$custom: #042839;
$custom-light: #4e616f;
$custom-dark: #000000;
JSON
{
  "hex": "#042839",
  "rgb": {
    "r": 4,
    "g": 40,
    "b": 57
  },
  "hsl": {
    "h": 199.245,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.26154,
    "c": 0.05055,
    "h": 234
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#042839
secondary
#7B3C1E
accent
#6E2BFD
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020507
muted
#78797A

Preview Lab

Preview with #042839

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

Preview Lab → · Contrast checker → · Palette generator →

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