#051141#051141

#051141 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.092 H 266.1°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#051141
RGBrgb(5, 17, 65)
HSLhsl(228, 86%, 14%)
HSVhsv(228, 92%, 25%)
CMYKcmyk(92.3%, 73.8%, 0%, 74.5%)
CIE-LABlab(7.36, 16.28, -31.79)
CIE-LCHlch(7.36, 35.71, 297.12°)
OKLaboklab(20.76% -0.0062 -0.0922)
OKLCHoklch(20.76% 0.092 266.1)
XYZxyz(1.2168, 0.8147, 5.0931)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051141 #413505
analogous
#052F41 #051141 #170541
triadic
#051141 #410511 #114105
tetradic
#051141 #41052F #413505 #054117
square
#051141 #41052F #413505 #054117
split-complementary
#051141 #411705 #2F4105
monochromatic
#02071C #02071C #051141 #09207A #0E2FB3

Accessibility & contrast

On white

18.06
#051141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#051141 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051141
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051141#FFFFFF#000000##FFFFFF
##0511411.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #051141;
/* rgb */ color: rgb(5, 17, 65);
/* oklch */ color: oklch(20.8% 0.092 266.1);
Tailwind
colors: {
  custom: {
    50: '#524e76',
    500: '#051141',
    950: '#000000',
  },
}
SCSS
$custom: #051141;
$custom-light: #524e76;
$custom-dark: #000000;
JSON
{
  "hex": "#051141",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 65
  },
  "hsl": {
    "h": 228,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20756,
    "c": 0.09238,
    "h": 266.1
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#051141
secondary
#816E20
accent
#D22CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #051141

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

Preview Lab → · Contrast checker → · Palette generator →

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