#051147#051147

#051147 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.101 H 266.3°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#051147
RGBrgb(5, 17, 71)
HSLhsl(229, 87%, 15%)
HSVhsv(229, 93%, 28%)
CMYKcmyk(93%, 76.1%, 0%, 72.2%)
CIE-LABlab(8.02, 19.03, -34.94)
CIE-LCHlch(8.02, 39.78, 298.58°)
OKLaboklab(21.46% -0.0066 -0.1013)
OKLCHoklch(21.46% 0.101 266.3)
XYZxyz(1.4000, 0.8879, 6.0576)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051147 #473B05
analogous
#053247 #051147 #1A0547
triadic
#051147 #470511 #114705
tetradic
#051147 #470532 #473B05 #05471A
square
#051147 #470532 #473B05 #05471A
split-complementary
#051147 #471A05 #324705
monochromatic
#02071D #02071D #051147 #091F80 #0D2CB9

Accessibility & contrast

On white

17.83
#051147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051147
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051147#FFFFFF#000000##FFFFFF
##0511471.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001446
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051147;
/* rgb */ color: rgb(5, 17, 71);
/* oklch */ color: oklch(21.5% 0.101 266.3);
Tailwind
colors: {
  custom: {
    50: '#544e7b',
    500: '#051147',
    950: '#000000',
  },
}
SCSS
$custom: #051147;
$custom-light: #544e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#051147",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 229.091,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21459,
    "c": 0.10148,
    "h": 266.3
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#051147
secondary
#877421
accent
#D72BFD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #051147

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

Preview Lab → · Contrast checker → · Palette generator →

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