#051E41#051E41

#051E41 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.073 H 257.4°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#051E41
RGBrgb(5, 30, 65)
HSLhsl(215, 86%, 14%)
HSVhsv(215, 92%, 25%)
CMYKcmyk(92.3%, 53.8%, 0%, 74.5%)
CIE-LABlab(11.57, 6.05, -24.94)
CIE-LCHlch(11.57, 25.67, 283.62°)
OKLaboklab(23.95% -0.016 -0.0717)
OKLCHoklch(23.95% 0.073 257.4)
XYZxyz(1.4806, 1.3423, 5.1811)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051E41 #412805
analogous
#053C41 #051E41 #0A0541
triadic
#051E41 #41051E #1E4105
tetradic
#051E41 #41053C #412805 #05410A
square
#051E41 #41053C #412805 #05410A
split-complementary
#051E41 #410A05 #3C4105
monochromatic
#020D1C #020D1C #051E41 #09387A #0E52B3

Accessibility & contrast

On white

16.56
#051E41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#051E41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051E41
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051E41#FFFFFF#000000##FFFFFF
##051E411.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2242
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #051e41;
/* rgb */ color: rgb(5, 30, 65);
/* oklch */ color: oklch(23.9% 0.073 257.4);
Tailwind
colors: {
  custom: {
    50: '#515976',
    500: '#051e41',
    950: '#000000',
  },
}
SCSS
$custom: #051e41;
$custom-light: #515976;
$custom-dark: #000000;
JSON
{
  "hex": "#051e41",
  "rgb": {
    "r": 5,
    "g": 30,
    "b": 65
  },
  "hsl": {
    "h": 215,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23945,
    "c": 0.07347,
    "h": 257.4
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#051E41
secondary
#815920
accent
#A52CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051E41

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

Preview Lab → · Contrast checker → · Palette generator →

#051E41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva