#051146#051146

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

Color values

HEX#051146
RGBrgb(5, 17, 70)
HSLhsl(229, 87%, 15%)
HSVhsv(229, 93%, 27%)
CMYKcmyk(92.9%, 75.7%, 0%, 72.5%)
CIE-LABlab(7.91, 18.59, -34.42)
CIE-LCHlch(7.91, 39.12, 298.37°)
OKLaboklab(21.34% -0.0065 -0.0998)
OKLCHoklch(21.34% 0.1 266.3)
XYZxyz(1.3681, 0.8752, 5.8900)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051146 #463A05
analogous
#053246 #051146 #1A0546
triadic
#051146 #460511 #114605
tetradic
#051146 #460532 #463A05 #05461A
square
#051146 #460532 #463A05 #05461A
split-complementary
#051146 #461A05 #324605
monochromatic
#02071D #02071D #051146 #091F7F #0D2DB8

Accessibility & contrast

On white

17.87
#051146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051146
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051146#FFFFFF#000000##FFFFFF
##0511461.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#002029
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #051146;
/* rgb */ color: rgb(5, 17, 70);
/* oklch */ color: oklch(21.3% 0.100 266.3);
Tailwind
colors: {
  custom: {
    50: '#544e7a',
    500: '#051146',
    950: '#000000',
  },
}
SCSS
$custom: #051146;
$custom-light: #544e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#051146",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 70
  },
  "hsl": {
    "h": 228.923,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2134,
    "c": 0.09998,
    "h": 266.3
  },
  "luminance": 0.00875
}

Semantic roles & 50–950 ramp

primary
#051146
secondary
#867321
accent
#D62BFD
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #051146

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

Preview Lab → · Contrast checker → · Palette generator →

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