#042239#042239

#042239 is a very dark, muted cyan. Relative luminance 0.015; OKLCH L 24.4% C 0.056 H 245.7°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#042239
RGBrgb(4, 34, 57)
HSLhsl(206, 87%, 12%)
HSVhsv(206, 93%, 22%)
CMYKcmyk(93%, 40.4%, 0%, 77.6%)
CIE-LABlab(12.38, -0.95, -17.99)
CIE-LCHlch(12.38, 18.02, 266.97°)
OKLaboklab(24.38% -0.0231 -0.0512)
OKLCHoklch(24.38% 0.056 245.7)
XYZxyz(1.3603, 1.4651, 4.0812)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042239 #391B04
analogous
#043936 #042239 #040739
triadic
#042239 #390422 #223904
tetradic
#042239 #360439 #391B04 #073904
square
#042239 #360439 #391B04 #073904
split-complementary
#042239 #390407 #393604
monochromatic
#02111D #02111D #042239 #084472 #0C66AB

Accessibility & contrast

On white

16.24
#042239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#042239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042239
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042239#FFFFFF#000000##FFFFFF
##0422391.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17233A
Deuteranopia (green-blind)
#0F1E39
Tritanopia (blue-blind)
#00282A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #042239;
/* rgb */ color: rgb(4, 34, 57);
/* oklch */ color: oklch(24.4% 0.056 245.7);
Tailwind
colors: {
  custom: {
    50: '#4e5c6f',
    500: '#042239',
    950: '#000000',
  },
}
SCSS
$custom: #042239;
$custom-light: #4e5c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#042239",
  "rgb": {
    "r": 4,
    "g": 34,
    "b": 57
  },
  "hsl": {
    "h": 206.038,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.24384,
    "c": 0.05619,
    "h": 245.7
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#042239
secondary
#7B461E
accent
#862BFD
background
#F4F5F6
surface
#E7E9EC
border
#C3C5C7
text
#020407
muted
#78797A

Preview Lab

Preview with #042239

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

Preview Lab → · Contrast checker → · Palette generator →

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