#051042#051042

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

Color values

HEX#051042
RGBrgb(5, 16, 66)
HSLhsl(229, 86%, 14%)
HSVhsv(229, 92%, 26%)
CMYKcmyk(92.4%, 75.8%, 0%, 74.1%)
CIE-LABlab(7.19, 17.46, -32.77)
CIE-LCHlch(7.19, 37.13, 298.05°)
OKLaboklab(20.66% -0.0057 -0.0951)
OKLCHoklch(20.66% 0.095 266.5)
XYZxyz(1.2309, 0.7960, 5.2420)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051042 #423705
analogous
#052F42 #051042 #190542
triadic
#051042 #420510 #104205
tetradic
#051042 #42052F #423705 #054219
square
#051042 #42052F #423705 #054219
split-complementary
#051042 #421905 #2F4205
monochromatic
#02071C #02071C #051042 #091E7B #0E2CB4

Accessibility & contrast

On white

18.12
#051042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051042
18.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051042#FFFFFF#000000##FFFFFF
##0510421.0018.121.1618.12
#FFFFFF18.121.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #051042;
/* rgb */ color: rgb(5, 16, 66);
/* oklch */ color: oklch(20.7% 0.095 266.5);
Tailwind
colors: {
  custom: {
    50: '#524e77',
    500: '#051042',
    950: '#000000',
  },
}
SCSS
$custom: #051042;
$custom-light: #524e77;
$custom-dark: #000000;
JSON
{
  "hex": "#051042",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 229.18,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20658,
    "c": 0.09528,
    "h": 266.5
  },
  "luminance": 0.00796
}

Semantic roles & 50–950 ramp

primary
#051042
secondary
#827120
accent
#D72CFC
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #051042

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

Preview Lab → · Contrast checker → · Palette generator →

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