#051841#051841

#051841 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.082 H 262.4°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#051841
RGBrgb(5, 24, 65)
HSLhsl(221, 86%, 14%)
HSVhsv(221, 92%, 25%)
CMYKcmyk(92.3%, 63.1%, 0%, 74.5%)
CIE-LABlab(9.54, 10.80, -28.23)
CIE-LCHlch(9.54, 30.23, 290.94°)
OKLaboklab(22.4% -0.0109 -0.0815)
OKLCHoklch(22.4% 0.082 262.4)
XYZxyz(1.3430, 1.0670, 5.1352)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051841 #412E05
analogous
#053641 #051841 #100541
triadic
#051841 #410518 #184105
tetradic
#051841 #410536 #412E05 #054110
square
#051841 #410536 #412E05 #054110
split-complementary
#051841 #411005 #364105
monochromatic
#020A1C #020A1C #051841 #092D7A #0E42B3

Accessibility & contrast

On white

17.31
#051841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#051841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051841
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051841#FFFFFF#000000##FFFFFF
##0518411.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#001840
Tritanopia (blue-blind)
#002229
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #051841;
/* rgb */ color: rgb(5, 24, 65);
/* oklch */ color: oklch(22.4% 0.082 262.4);
Tailwind
colors: {
  custom: {
    50: '#515476',
    500: '#051841',
    950: '#000000',
  },
}
SCSS
$custom: #051841;
$custom-light: #515476;
$custom-dark: #000000;
JSON
{
  "hex": "#051841",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 65
  },
  "hsl": {
    "h": 221,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22395,
    "c": 0.08226,
    "h": 262.4
  },
  "luminance": 0.01067
}

Semantic roles & 50–950 ramp

primary
#051841
secondary
#816320
accent
#BA2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #051841

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

Preview Lab → · Contrast checker → · Palette generator →

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