#050542#050542

#050542 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.6% C 0.109 H 269.1°. Best body text is #FFFFFF at 18.97:1 contrast (WCAG AA passes).

Color values

HEX#050542
RGBrgb(5, 5, 66)
HSLhsl(240, 86%, 14%)
HSVhsv(240, 92%, 26%)
CMYKcmyk(92.4%, 92.4%, 0%, 74.1%)
CIE-LABlab(4.82, 23.34, -36.65)
CIE-LCHlch(4.82, 43.45, 302.49°)
OKLaboklab(18.6% -0.0016 -0.1088)
OKLCHoklch(18.6% 0.109 269.1)
XYZxyz(1.0999, 0.5340, 5.1983)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050542 #424205
analogous
#052442 #050542 #240542
triadic
#050542 #420505 #054205
tetradic
#050542 #420524 #424205 #054224
square
#050542 #420524 #424205 #054224
split-complementary
#050542 #422405 #244205
monochromatic
#02021C #02021C #050542 #09097B #0E0EB4

Accessibility & contrast

On white

18.97
#050542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#050542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050542
18.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050542#FFFFFF#000000##FFFFFF
##0505421.0018.971.1118.97
#FFFFFF18.971.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001444
Deuteranopia (green-blind)
#000D41
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #050542;
/* rgb */ color: rgb(5, 5, 66);
/* oklch */ color: oklch(18.6% 0.109 269.1);
Tailwind
colors: {
  custom: {
    50: '#534777',
    500: '#050542',
    950: '#000000',
  },
}
SCSS
$custom: #050542;
$custom-light: #534777;
$custom-dark: #000000;
JSON
{
  "hex": "#050542",
  "rgb": {
    "r": 5,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 240,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.18602,
    "c": 0.10885,
    "h": 269.1
  },
  "luminance": 0.00534
}

Semantic roles & 50–950 ramp

primary
#050542
secondary
#828220
accent
#FC2CFC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #050542

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

Preview Lab → · Contrast checker → · Palette generator →

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