#052040#052040

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

Color values

HEX#052040
RGBrgb(5, 32, 64)
HSLhsl(213, 86%, 14%)
HSVhsv(213, 92%, 25%)
CMYKcmyk(92.2%, 50%, 0%, 74.9%)
CIE-LABlab(12.19, 4.02, -23.24)
CIE-LCHlch(12.19, 23.59, 279.82°)
OKLaboklab(24.4% -0.0181 -0.0666)
OKLCHoklch(24.4% 0.069 254.8)
XYZxyz(1.5042, 1.4353, 5.0473)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#052040 #402505
analogous
#053D40 #052040 #070540
triadic
#052040 #400520 #204005
tetradic
#052040 #40053D #402505 #054007
square
#052040 #40053D #402505 #054007
split-complementary
#052040 #400705 #3D4005
monochromatic
#020E1C #020E1C #052040 #093C79 #0E59B2

Accessibility & contrast

On white

16.32
#052040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #052040
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##052040#FFFFFF#000000##FFFFFF
##0520401.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2341
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #052040;
/* rgb */ color: rgb(5, 32, 64);
/* oklch */ color: oklch(24.4% 0.069 254.8);
Tailwind
colors: {
  custom: {
    50: '#505a75',
    500: '#052040',
    950: '#000000',
  },
}
SCSS
$custom: #052040;
$custom-light: #505a75;
$custom-dark: #000000;
JSON
{
  "hex": "#052040",
  "rgb": {
    "r": 5,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 212.542,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24402,
    "c": 0.06906,
    "h": 254.8
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#052040
secondary
#815420
accent
#9D2CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #052040

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

Preview Lab → · Contrast checker → · Palette generator →

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