#051041#051041

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

Color values

HEX#051041
RGBrgb(5, 16, 65)
HSLhsl(229, 86%, 14%)
HSVhsv(229, 92%, 25%)
CMYKcmyk(92.3%, 75.4%, 0%, 74.5%)
CIE-LABlab(7.09, 16.98, -32.24)
CIE-LCHlch(7.09, 36.43, 297.77°)
OKLaboklab(20.54% -0.0057 -0.0936)
OKLCHoklch(20.54% 0.094 266.5)
XYZxyz(1.2017, 0.7844, 5.0881)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051041 #413605
analogous
#052E41 #051041 #180541
triadic
#051041 #410510 #104105
tetradic
#051041 #41052E #413605 #054118
square
#051041 #41052E #413605 #054118
split-complementary
#051041 #411805 #2E4105
monochromatic
#02071C #02071C #051041 #091E7A #0E2CB3

Accessibility & contrast

On white

18.15
#051041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051041
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051041#FFFFFF#000000##FFFFFF
##0510411.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051041;
/* rgb */ color: rgb(5, 16, 65);
/* oklch */ color: oklch(20.5% 0.094 266.5);
Tailwind
colors: {
  custom: {
    50: '#524d76',
    500: '#051041',
    950: '#000000',
  },
}
SCSS
$custom: #051041;
$custom-light: #524d76;
$custom-dark: #000000;
JSON
{
  "hex": "#051041",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 229,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20541,
    "c": 0.09376,
    "h": 266.5
  },
  "luminance": 0.00785
}

Semantic roles & 50–950 ramp

primary
#051041
secondary
#817020
accent
#D62CFC
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #051041

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

Preview Lab → · Contrast checker → · Palette generator →

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