#052042#052042

#052042 is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.6% C 0.072 H 255.9°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#052042
RGBrgb(5, 32, 66)
HSLhsl(213, 86%, 14%)
HSVhsv(213, 92%, 26%)
CMYKcmyk(92.4%, 51.5%, 0%, 74.1%)
CIE-LABlab(12.34, 4.96, -24.40)
CIE-LCHlch(12.34, 24.90, 281.50°)
OKLaboklab(24.57% -0.0176 -0.0701)
OKLCHoklch(24.57% 0.072 255.9)
XYZxyz(1.5621, 1.4584, 5.3524)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#052042 #422705
analogous
#053F42 #052042 #090542
triadic
#052042 #420520 #204205
tetradic
#052042 #42053F #422705 #054209
square
#052042 #42053F #422705 #054209
split-complementary
#052042 #420905 #3F4205
monochromatic
#020E1C #020E1C #052042 #093C7B #0E57B4

Accessibility & contrast

On white

16.26
#052042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #052042
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##052042#FFFFFF#000000##FFFFFF
##0520421.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2343
Deuteranopia (green-blind)
#021E41
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #052042;
/* rgb */ color: rgb(5, 32, 66);
/* oklch */ color: oklch(24.6% 0.072 255.9);
Tailwind
colors: {
  custom: {
    50: '#515a76',
    500: '#052042',
    950: '#000000',
  },
}
SCSS
$custom: #052042;
$custom-light: #515a76;
$custom-dark: #000000;
JSON
{
  "hex": "#052042",
  "rgb": {
    "r": 5,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 213.443,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24567,
    "c": 0.07224,
    "h": 255.9
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#052042
secondary
#825720
accent
#A02CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #052042

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

Preview Lab → · Contrast checker → · Palette generator →

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