#051B41#051B41

#051B41 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.2% C 0.078 H 260.1°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#051B41
RGBrgb(5, 27, 65)
HSLhsl(218, 86%, 14%)
HSVhsv(218, 92%, 25%)
CMYKcmyk(92.3%, 58.5%, 0%, 74.5%)
CIE-LABlab(10.54, 8.41, -26.60)
CIE-LCHlch(10.54, 27.90, 287.55°)
OKLaboklab(23.16% -0.0134 -0.0767)
OKLCHoklch(23.16% 0.078 260.1)
XYZxyz(1.4083, 1.1976, 5.1569)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051B41 #412B05
analogous
#053941 #051B41 #0D0541
triadic
#051B41 #41051B #1B4105
tetradic
#051B41 #410539 #412B05 #05410D
square
#051B41 #410539 #412B05 #05410D
split-complementary
#051B41 #410D05 #394105
monochromatic
#020C1C #020C1C #051B41 #09337A #0E4AB3

Accessibility & contrast

On white

16.94
#051B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#051B41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051B41
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051B41#FFFFFF#000000##FFFFFF
##051B411.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031F42
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#00242A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #051b41;
/* rgb */ color: rgb(5, 27, 65);
/* oklch */ color: oklch(23.2% 0.078 260.1);
Tailwind
colors: {
  custom: {
    50: '#515676',
    500: '#051b41',
    950: '#000000',
  },
}
SCSS
$custom: #051b41;
$custom-light: #515676;
$custom-dark: #000000;
JSON
{
  "hex": "#051b41",
  "rgb": {
    "r": 5,
    "g": 27,
    "b": 65
  },
  "hsl": {
    "h": 218,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.23156,
    "c": 0.07783,
    "h": 260.1
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#051B41
secondary
#815E20
accent
#B02CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051B41

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

Preview Lab → · Contrast checker → · Palette generator →

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