#051642#051642

#051642 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.087 H 263.8°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#051642
RGBrgb(5, 22, 66)
HSLhsl(223, 86%, 14%)
HSVhsv(223, 92%, 26%)
CMYKcmyk(92.4%, 66.7%, 0%, 74.1%)
CIE-LABlab(8.99, 12.87, -29.83)
CIE-LCHlch(8.99, 32.49, 293.33°)
OKLaboklab(22.01% -0.0094 -0.0863)
OKLCHoklch(22.01% 0.087 263.8)
XYZxyz(1.3325, 0.9993, 5.2758)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051642 #423105
analogous
#053542 #051642 #130542
triadic
#051642 #420516 #164205
tetradic
#051642 #420535 #423105 #054213
square
#051642 #420535 #423105 #054213
split-complementary
#051642 #421305 #354205
monochromatic
#02091C #02091C #051642 #09297B #0E3CB4

Accessibility & contrast

On white

17.50
#051642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#051642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051642
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051642#FFFFFF#000000##FFFFFF
##0516421.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051642;
/* rgb */ color: rgb(5, 22, 66);
/* oklch */ color: oklch(22.0% 0.087 263.8);
Tailwind
colors: {
  custom: {
    50: '#525277',
    500: '#051642',
    950: '#000000',
  },
}
SCSS
$custom: #051642;
$custom-light: #525277;
$custom-dark: #000000;
JSON
{
  "hex": "#051642",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 66
  },
  "hsl": {
    "h": 223.279,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22009,
    "c": 0.0868,
    "h": 263.8
  },
  "luminance": 0.00999
}

Semantic roles & 50–950 ramp

primary
#051642
secondary
#826720
accent
#C22CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #051642

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

Preview Lab → · Contrast checker → · Palette generator →

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