#051442#051442

#051442 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.090 H 264.8°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#051442
RGBrgb(5, 20, 66)
HSLhsl(225, 86%, 14%)
HSVhsv(225, 92%, 26%)
CMYKcmyk(92.4%, 69.7%, 0%, 74.1%)
CIE-LABlab(8.36, 14.46, -30.86)
CIE-LCHlch(8.36, 34.08, 295.10°)
OKLaboklab(21.54% -0.0081 -0.0893)
OKLCHoklch(21.54% 0.09 264.8)
XYZxyz(1.2958, 0.9258, 5.2636)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051442 #423305
analogous
#053342 #051442 #150542
triadic
#051442 #420514 #144205
tetradic
#051442 #420533 #423305 #054215
square
#051442 #420533 #423305 #054215
split-complementary
#051442 #421505 #334205
monochromatic
#02091C #02091C #051442 #09257B #0E36B4

Accessibility & contrast

On white

17.72
#051442 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051442
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051442#FFFFFF#000000##FFFFFF
##0514421.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051442;
/* rgb */ color: rgb(5, 20, 66);
/* oklch */ color: oklch(21.5% 0.090 264.8);
Tailwind
colors: {
  custom: {
    50: '#525177',
    500: '#051442',
    950: '#000000',
  },
}
SCSS
$custom: #051442;
$custom-light: #525177;
$custom-dark: #000000;
JSON
{
  "hex": "#051442",
  "rgb": {
    "r": 5,
    "g": 20,
    "b": 66
  },
  "hsl": {
    "h": 225.246,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2154,
    "c": 0.08969,
    "h": 264.8
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#051442
secondary
#826A20
accent
#C92CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #051442

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

Preview Lab → · Contrast checker → · Palette generator →

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