#042047#042047

#042047 is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 25.0% C 0.081 H 257.5°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#042047
RGBrgb(4, 32, 71)
HSLhsl(215, 89%, 15%)
HSVhsv(215, 94%, 28%)
CMYKcmyk(94.4%, 54.9%, 0%, 72.2%)
CIE-LABlab(12.69, 7.17, -27.32)
CIE-LCHlch(12.69, 28.24, 284.70°)
OKLaboklab(24.95% -0.0174 -0.0787)
OKLCHoklch(24.95% 0.081 257.5)
XYZxyz(1.7035, 1.5136, 6.1624)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042047 #472B04
analogous
#044247 #042047 #090447
triadic
#042047 #470420 #204704
tetradic
#042047 #470442 #472B04 #044709
square
#042047 #470442 #472B04 #044709
split-complementary
#042047 #470904 #424704
monochromatic
#020D1D #020D1D #042047 #073A81 #0B54BB

Accessibility & contrast

On white

16.12
#042047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#042047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042047
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042047#FFFFFF#000000##FFFFFF
##0420471.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082448
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042047;
/* rgb */ color: rgb(4, 32, 71);
/* oklch */ color: oklch(25.0% 0.081 257.5);
Tailwind
colors: {
  custom: {
    50: '#525a7a',
    500: '#042047',
    950: '#000000',
  },
}
SCSS
$custom: #042047;
$custom-light: #525a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#042047",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 71
  },
  "hsl": {
    "h": 214.925,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24954,
    "c": 0.08057,
    "h": 257.5
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#042047
secondary
#885C1F
accent
#A529FF
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #042047

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

Preview Lab → · Contrast checker → · Palette generator →

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