#051040#051040

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

Color values

HEX#051040
RGBrgb(5, 16, 64)
HSLhsl(229, 86%, 14%)
HSVhsv(229, 92%, 25%)
CMYKcmyk(92.2%, 75%, 0%, 74.9%)
CIE-LABlab(6.98, 16.49, -31.69)
CIE-LCHlch(6.98, 35.73, 297.48°)
OKLaboklab(20.42% -0.0056 -0.0921)
OKLCHoklch(20.42% 0.092 266.5)
XYZxyz(1.1730, 0.7729, 4.9369)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051040 #403505
analogous
#052D40 #051040 #170540
triadic
#051040 #400510 #104005
tetradic
#051040 #40052D #403505 #054017
square
#051040 #40052D #403505 #054017
split-complementary
#051040 #401705 #2D4005
monochromatic
#02071C #02071C #051040 #091E79 #0E2CB2

Accessibility & contrast

On white

18.19
#051040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#051040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051040
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051040#FFFFFF#000000##FFFFFF
##0510401.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #051040;
/* rgb */ color: rgb(5, 16, 64);
/* oklch */ color: oklch(20.4% 0.092 266.5);
Tailwind
colors: {
  custom: {
    50: '#524d75',
    500: '#051040',
    950: '#000000',
  },
}
SCSS
$custom: #051040;
$custom-light: #524d75;
$custom-dark: #000000;
JSON
{
  "hex": "#051040",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 228.814,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20423,
    "c": 0.09222,
    "h": 266.5
  },
  "luminance": 0.00773
}

Semantic roles & 50–950 ramp

primary
#051040
secondary
#816F20
accent
#D52CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #051040

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

Preview Lab → · Contrast checker → · Palette generator →

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