#051341#051341

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

Color values

HEX#051341
RGBrgb(5, 19, 65)
HSLhsl(226, 86%, 14%)
HSVhsv(226, 92%, 25%)
CMYKcmyk(92.3%, 70.8%, 0%, 74.5%)
CIE-LABlab(7.94, 14.79, -30.83)
CIE-LCHlch(7.94, 34.19, 295.63°)
OKLaboklab(21.2% -0.0074 -0.0892)
OKLCHoklch(21.2% 0.09 265.2)
XYZxyz(1.2493, 0.8795, 5.1039)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051341 #413305
analogous
#053141 #051341 #150541
triadic
#051341 #410513 #134105
tetradic
#051341 #410531 #413305 #054115
square
#051341 #410531 #413305 #054115
split-complementary
#051341 #411505 #314105
monochromatic
#02081C #02081C #051341 #09247A #0E34B3

Accessibility & contrast

On white

17.86
#051341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051341
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051341#FFFFFF#000000##FFFFFF
##0513411.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #051341;
/* rgb */ color: rgb(5, 19, 65);
/* oklch */ color: oklch(21.2% 0.090 265.2);
Tailwind
colors: {
  custom: {
    50: '#525076',
    500: '#051341',
    950: '#000000',
  },
}
SCSS
$custom: #051341;
$custom-light: #525076;
$custom-dark: #000000;
JSON
{
  "hex": "#051341",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 226,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21201,
    "c": 0.08956,
    "h": 265.2
  },
  "luminance": 0.0088
}

Semantic roles & 50–950 ramp

primary
#051341
secondary
#816B20
accent
#CB2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #051341

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

Preview Lab → · Contrast checker → · Palette generator →

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