#042046#042046

#042046 is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.9% C 0.079 H 257.1°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#042046
RGBrgb(4, 32, 70)
HSLhsl(215, 89%, 15%)
HSVhsv(215, 94%, 27%)
CMYKcmyk(94.3%, 54.3%, 0%, 72.5%)
CIE-LABlab(12.61, 6.70, -26.75)
CIE-LCHlch(12.61, 27.58, 284.06°)
OKLaboklab(24.87% -0.0176 -0.077)
OKLCHoklch(24.87% 0.079 257.1)
XYZxyz(1.6717, 1.5008, 5.9947)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#042046 #462A04
analogous
#044146 #042046 #090446
triadic
#042046 #460420 #204604
tetradic
#042046 #460441 #462A04 #044609
square
#042046 #460441 #462A04 #044609
split-complementary
#042046 #460904 #414604
monochromatic
#020D1D #020D1D #042046 #073A80 #0B55BA

Accessibility & contrast

On white

16.15
#042046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #042046
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##042046#FFFFFF#000000##FFFFFF
##0420461.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092447
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #042046;
/* rgb */ color: rgb(4, 32, 70);
/* oklch */ color: oklch(24.9% 0.079 257.1);
Tailwind
colors: {
  custom: {
    50: '#525a7a',
    500: '#042046',
    950: '#000000',
  },
}
SCSS
$custom: #042046;
$custom-light: #525a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#042046",
  "rgb": {
    "r": 4,
    "g": 32,
    "b": 70
  },
  "hsl": {
    "h": 214.545,
    "s": 89.189,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24866,
    "c": 0.07899,
    "h": 257.1
  },
  "luminance": 0.01501
}

Semantic roles & 50–950 ramp

primary
#042046
secondary
#875B1F
accent
#A429FF
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #042046

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

Preview Lab → · Contrast checker → · Palette generator →

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