#051542#051542

#051542 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.088 H 264.3°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#051542
RGBrgb(5, 21, 66)
HSLhsl(224, 86%, 14%)
HSVhsv(224, 92%, 26%)
CMYKcmyk(92.4%, 68.2%, 0%, 74.1%)
CIE-LABlab(8.67, 13.66, -30.35)
CIE-LCHlch(8.67, 33.29, 294.24°)
OKLaboklab(21.77% -0.0087 -0.0878)
OKLCHoklch(21.77% 0.088 264.3)
XYZxyz(1.3138, 0.9618, 5.2696)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051542 #423205
analogous
#053442 #051542 #140542
triadic
#051542 #420515 #154205
tetradic
#051542 #420534 #423205 #054214
square
#051542 #420534 #423205 #054214
split-complementary
#051542 #421405 #344205
monochromatic
#02091C #02091C #051542 #09277B #0E39B4

Accessibility & contrast

On white

17.61
#051542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#051542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051542
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051542#FFFFFF#000000##FFFFFF
##0515421.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C43
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#002129
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051542;
/* rgb */ color: rgb(5, 21, 66);
/* oklch */ color: oklch(21.8% 0.088 264.3);
Tailwind
colors: {
  custom: {
    50: '#525177',
    500: '#051542',
    950: '#000000',
  },
}
SCSS
$custom: #051542;
$custom-light: #525177;
$custom-dark: #000000;
JSON
{
  "hex": "#051542",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 224.262,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21772,
    "c": 0.08825,
    "h": 264.3
  },
  "luminance": 0.00962
}

Semantic roles & 50–950 ramp

primary
#051542
secondary
#826920
accent
#C52CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #051542

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

Preview Lab → · Contrast checker → · Palette generator →

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