#051241#051241

#051241 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.091 H 265.7°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#051241
RGBrgb(5, 18, 65)
HSLhsl(227, 86%, 14%)
HSVhsv(227, 92%, 25%)
CMYKcmyk(92.3%, 72.3%, 0%, 74.5%)
CIE-LABlab(7.65, 15.55, -31.32)
CIE-LCHlch(7.65, 34.97, 296.41°)
OKLaboklab(20.98% -0.0068 -0.0907)
OKLCHoklch(20.98% 0.091 265.7)
XYZxyz(1.2327, 0.8464, 5.0984)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051241 #413405
analogous
#053041 #051241 #160541
triadic
#051241 #410512 #124105
tetradic
#051241 #410530 #413405 #054116
square
#051241 #410530 #413405 #054116
split-complementary
#051241 #411605 #304105
monochromatic
#02081C #02081C #051241 #09227A #0E31B3

Accessibility & contrast

On white

17.96
#051241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#051241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051241
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051241#FFFFFF#000000##FFFFFF
##0512411.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #051241;
/* rgb */ color: rgb(5, 18, 65);
/* oklch */ color: oklch(21.0% 0.091 265.7);
Tailwind
colors: {
  custom: {
    50: '#524f76',
    500: '#051241',
    950: '#000000',
  },
}
SCSS
$custom: #051241;
$custom-light: #524f76;
$custom-dark: #000000;
JSON
{
  "hex": "#051241",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 227,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20976,
    "c": 0.09098,
    "h": 265.7
  },
  "luminance": 0.00847
}

Semantic roles & 50–950 ramp

primary
#051241
secondary
#816C20
accent
#CF2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #051241

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

Preview Lab → · Contrast checker → · Palette generator →

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