#051541#051541

#051541 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.087 H 264.2°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#051541
RGBrgb(5, 21, 65)
HSLhsl(224, 86%, 14%)
HSVhsv(224, 92%, 25%)
CMYKcmyk(92.3%, 67.7%, 0%, 74.5%)
CIE-LABlab(8.57, 13.20, -29.81)
CIE-LCHlch(8.57, 32.60, 293.88°)
OKLaboklab(21.67% -0.0088 -0.0862)
OKLCHoklch(21.67% 0.087 264.2)
XYZxyz(1.2845, 0.9501, 5.1157)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051541 #413105
analogous
#053341 #051541 #130541
triadic
#051541 #410515 #154105
tetradic
#051541 #410533 #413105 #054113
square
#051541 #410533 #413105 #054113
split-complementary
#051541 #411305 #334105
monochromatic
#02091C #02091C #051541 #09277A #0E3AB3

Accessibility & contrast

On white

17.65
#051541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051541
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051541#FFFFFF#000000##FFFFFF
##0515411.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#001640
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051541;
/* rgb */ color: rgb(5, 21, 65);
/* oklch */ color: oklch(21.7% 0.087 264.2);
Tailwind
colors: {
  custom: {
    50: '#515176',
    500: '#051541',
    950: '#000000',
  },
}
SCSS
$custom: #051541;
$custom-light: #515176;
$custom-dark: #000000;
JSON
{
  "hex": "#051541",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 224,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21666,
    "c": 0.08667,
    "h": 264.2
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#051541
secondary
#816820
accent
#C42CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #051541

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

Preview Lab → · Contrast checker → · Palette generator →

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