#042147#042147

#042147 is a dark, moderate cyan. Relative luminance 0.016; OKLCH L 25.2% C 0.079 H 256.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#042147
RGBrgb(4, 33, 71)
HSLhsl(214, 89%, 15%)
HSVhsv(214, 94%, 28%)
CMYKcmyk(94.4%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.04, 6.39, -26.77)
CIE-LCHlch(13.04, 27.52, 283.43°)
OKLaboklab(25.22% -0.0183 -0.077)
OKLCHoklch(25.22% 0.079 256.6)
XYZxyz(1.7308, 1.5682, 6.1715)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042147 #472A04
analogous
#044347 #042147 #090447
triadic
#042147 #470421 #214704
tetradic
#042147 #470443 #472A04 #044709
square
#042147 #470443 #472A04 #044709
split-complementary
#042147 #470904 #434704
monochromatic
#020D1D #020D1D #042147 #073C81 #0B57BB

Accessibility & contrast

On white

15.99
#042147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#042147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #042147
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042147#FFFFFF#000000##FFFFFF
##0421471.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2548
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #042147;
/* rgb */ color: rgb(4, 33, 71);
/* oklch */ color: oklch(25.2% 0.079 256.6);
Tailwind
colors: {
  custom: {
    50: '#525b7a',
    500: '#042147',
    950: '#000000',
  },
}
SCSS
$custom: #042147;
$custom-light: #525b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#042147",
  "rgb": {
    "r": 4,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 214.03,
    "s": 89.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25217,
    "c": 0.07916,
    "h": 256.6
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#042147
secondary
#885A1F
accent
#A229FF
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #042147

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

Preview Lab → · Contrast checker → · Palette generator →

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