#051A42#051A42

#051A42 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.0% C 0.081 H 261.2°. Best body text is #FFFFFF at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#051A42
RGBrgb(5, 26, 66)
HSLhsl(219, 86%, 14%)
HSVhsv(219, 92%, 26%)
CMYKcmyk(92.4%, 60.6%, 0%, 74.1%)
CIE-LABlab(10.29, 9.68, -27.71)
CIE-LCHlch(10.29, 29.35, 289.25°)
OKLaboklab(22.99% -0.0124 -0.08)
OKLCHoklch(22.99% 0.081 261.2)
XYZxyz(1.4150, 1.1642, 5.3033)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051A42 #422D05
analogous
#053942 #051A42 #0F0542
triadic
#051A42 #42051A #1A4205
tetradic
#051A42 #420539 #422D05 #05420F
square
#051A42 #420539 #422D05 #05420F
split-complementary
#051A42 #420F05 #394205
monochromatic
#020B1C #020B1C #051A42 #09307B #0E47B4

Accessibility & contrast

On white

17.03
#051A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#051A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051A42
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051A42#FFFFFF#000000##FFFFFF
##051A421.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F43
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #051a42;
/* rgb */ color: rgb(5, 26, 66);
/* oklch */ color: oklch(23.0% 0.081 261.2);
Tailwind
colors: {
  custom: {
    50: '#515577',
    500: '#051a42',
    950: '#000000',
  },
}
SCSS
$custom: #051a42;
$custom-light: #515577;
$custom-dark: #000000;
JSON
{
  "hex": "#051a42",
  "rgb": {
    "r": 5,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 219.344,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22994,
    "c": 0.08092,
    "h": 261.2
  },
  "luminance": 0.01164
}

Semantic roles & 50–950 ramp

primary
#051A42
secondary
#826120
accent
#B42CFC
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051A42

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

Preview Lab → · Contrast checker → · Palette generator →

#051A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva