#051142#051142

#051142 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.094 H 266.2°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#051142
RGBrgb(5, 17, 66)
HSLhsl(228, 86%, 14%)
HSVhsv(228, 92%, 26%)
CMYKcmyk(92.4%, 74.2%, 0%, 74.1%)
CIE-LABlab(7.46, 16.76, -32.32)
CIE-LCHlch(7.46, 36.41, 297.40°)
OKLaboklab(20.87% -0.0063 -0.0937)
OKLCHoklch(20.87% 0.094 266.2)
XYZxyz(1.2461, 0.8264, 5.2470)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051142 #423605
analogous
#053042 #051142 #180542
triadic
#051142 #420511 #114205
tetradic
#051142 #420530 #423605 #054218
square
#051142 #420530 #423605 #054218
split-complementary
#051142 #421805 #304205
monochromatic
#02071C #02071C #051142 #09207B #0E2EB4

Accessibility & contrast

On white

18.02
#051142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051142
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051142#FFFFFF#000000##FFFFFF
##0511421.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051142;
/* rgb */ color: rgb(5, 17, 66);
/* oklch */ color: oklch(20.9% 0.094 266.2);
Tailwind
colors: {
  custom: {
    50: '#524e77',
    500: '#051142',
    950: '#000000',
  },
}
SCSS
$custom: #051142;
$custom-light: #524e77;
$custom-dark: #000000;
JSON
{
  "hex": "#051142",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 228.197,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20871,
    "c": 0.09392,
    "h": 266.2
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#051142
secondary
#826F20
accent
#D32CFC
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #051142

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

Preview Lab → · Contrast checker → · Palette generator →

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