#052142#052142

#052142 is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.8% C 0.071 H 254.8°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#052142
RGBrgb(5, 33, 66)
HSLhsl(212, 86%, 14%)
HSVhsv(212, 92%, 26%)
CMYKcmyk(92.4%, 50%, 0%, 74.1%)
CIE-LABlab(12.69, 4.19, -23.84)
CIE-LCHlch(12.69, 24.20, 279.97°)
OKLaboklab(24.84% -0.0185 -0.0684)
OKLCHoklch(24.84% 0.071 254.8)
XYZxyz(1.5894, 1.5131, 5.3615)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#052142 #422605
analogous
#054042 #052142 #080542
triadic
#052142 #420521 #214205
tetradic
#052142 #420540 #422605 #054208
square
#052142 #420540 #422605 #054208
split-complementary
#052142 #420805 #404205
monochromatic
#020E1C #020E1C #052142 #093D7B #0E5AB4

Accessibility & contrast

On white

16.12
#052142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #052142
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##052142#FFFFFF#000000##FFFFFF
##0521421.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102443
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #052142;
/* rgb */ color: rgb(5, 33, 66);
/* oklch */ color: oklch(24.8% 0.071 254.8);
Tailwind
colors: {
  custom: {
    50: '#515b76',
    500: '#052142',
    950: '#000000',
  },
}
SCSS
$custom: #052142;
$custom-light: #515b76;
$custom-dark: #000000;
JSON
{
  "hex": "#052142",
  "rgb": {
    "r": 5,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 212.459,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24839,
    "c": 0.07086,
    "h": 254.8
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#052142
secondary
#825520
accent
#9C2CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #052142

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

Preview Lab → · Contrast checker → · Palette generator →

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