#042041#042041

#042041 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.4% C 0.071 H 254.7°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#042041
RGBrgb(4, 32, 65)
HSLhsl(212, 88%, 14%)
HSVhsv(212, 94%, 25%)
CMYKcmyk(93.8%, 50.8%, 0%, 74.5%)
CIE-LABlab(12.22, 4.33, -23.89)
CIE-LCHlch(12.22, 24.28, 280.27°)
OKLaboklab(24.44% -0.0187 -0.0686)
OKLCHoklch(24.44% 0.071 254.7)
XYZxyz(1.5204, 1.4403, 5.1979)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042041 #412504
analogous
#043E41 #042041 #060441
triadic
#042041 #410420 #204104
tetradic
#042041 #41043E #412504 #044106
square
#042041 #41043E #412504 #044106
split-complementary
#042041 #410604 #3E4104
monochromatic
#020E1D #020E1D #042041 #083C7B #0B59B4

Accessibility & contrast

On white

16.30
#042041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042041
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042041#FFFFFF#000000##FFFFFF
##0420411.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2342
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #042041;
/* rgb */ color: rgb(4, 32, 65);
/* oklch */ color: oklch(24.4% 0.071 254.7);
Tailwind
colors: {
  custom: {
    50: '#505a76',
    500: '#042041',
    950: '#000000',
  },
}
SCSS
$custom: #042041;
$custom-light: #505a76;
$custom-dark: #000000;
JSON
{
  "hex": "#042041",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 65
  },
  "hsl": {
    "h": 212.459,
    "s": 88.406,
    "l": 13.529
  },
  "oklch": {
    "l": 0.2444,
    "c": 0.0711,
    "h": 254.7
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#042041
secondary
#82541F
accent
#9D29FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #042041

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

Preview Lab → · Contrast checker → · Palette generator →

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