#051342#051342

#051342 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.091 H 265.3°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#051342
RGBrgb(5, 19, 66)
HSLhsl(226, 86%, 14%)
HSVhsv(226, 92%, 26%)
CMYKcmyk(92.4%, 71.2%, 0%, 74.1%)
CIE-LABlab(8.05, 15.25, -31.36)
CIE-LCHlch(8.05, 34.87, 295.93°)
OKLaboklab(21.31% -0.0074 -0.0908)
OKLCHoklch(21.31% 0.091 265.3)
XYZxyz(1.2785, 0.8912, 5.2578)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051342 #423405
analogous
#053242 #051342 #160542
triadic
#051342 #420513 #134205
tetradic
#051342 #420532 #423405 #054216
square
#051342 #420532 #423405 #054216
split-complementary
#051342 #421605 #324205
monochromatic
#02081C #02081C #051342 #09237B #0E34B4

Accessibility & contrast

On white

17.82
#051342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#051342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051342
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051342#FFFFFF#000000##FFFFFF
##0513421.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051342;
/* rgb */ color: rgb(5, 19, 66);
/* oklch */ color: oklch(21.3% 0.091 265.3);
Tailwind
colors: {
  custom: {
    50: '#525077',
    500: '#051342',
    950: '#000000',
  },
}
SCSS
$custom: #051342;
$custom-light: #525077;
$custom-dark: #000000;
JSON
{
  "hex": "#051342",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 226.23,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21312,
    "c": 0.09113,
    "h": 265.3
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#051342
secondary
#826C20
accent
#CC2CFC
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #051342

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

Preview Lab → · Contrast checker → · Palette generator →

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