#052842#052842

#052842 is a dark, moderate cyan. Relative luminance 0.019; OKLCH L 26.8% C 0.062 H 245.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#052842
RGBrgb(5, 40, 66)
HSLhsl(206, 86%, 14%)
HSVhsv(206, 92%, 26%)
CMYKcmyk(92.4%, 39.4%, 0%, 74.1%)
CIE-LABlab(15.19, -1.04, -19.86)
CIE-LCHlch(15.19, 19.89, 267.01°)
OKLaboklab(26.79% -0.0255 -0.0566)
OKLCHoklch(26.79% 0.062 245.7)
XYZxyz(1.8044, 1.9430, 5.4331)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#052842 #421F05
analogous
#05423E #052842 #050A42
triadic
#052842 #420528 #284205
tetradic
#052842 #3E0542 #421F05 #0A4205
square
#052842 #3E0542 #421F05 #0A4205
split-complementary
#052842 #42050A #423E05
monochromatic
#02111C #02111C #052842 #094A7B #0E6DB4

Accessibility & contrast

On white

15.12
#052842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#052842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #052842
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##052842#FFFFFF#000000##FFFFFF
##0528421.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2943
Deuteranopia (green-blind)
#132442
Tritanopia (blue-blind)
#002E31
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #052842;
/* rgb */ color: rgb(5, 40, 66);
/* oklch */ color: oklch(26.8% 0.062 245.7);
Tailwind
colors: {
  custom: {
    50: '#516176',
    500: '#052842',
    950: '#000000',
  },
}
SCSS
$custom: #052842;
$custom-light: #516176;
$custom-dark: #000000;
JSON
{
  "hex": "#052842",
  "rgb": {
    "r": 5,
    "g": 40,
    "b": 66
  },
  "hsl": {
    "h": 205.574,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2679,
    "c": 0.06205,
    "h": 245.7
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#052842
secondary
#824A20
accent
#852CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020508
muted
#78797B

Preview Lab

Preview with #052842

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

Preview Lab → · Contrast checker → · Palette generator →

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