#051940#051940

#051940 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.079 H 261.4°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#051940
RGBrgb(5, 25, 64)
HSLhsl(220, 86%, 14%)
HSVhsv(220, 92%, 25%)
CMYKcmyk(92.2%, 60.9%, 0%, 74.9%)
CIE-LABlab(9.78, 9.53, -27.13)
CIE-LCHlch(9.78, 28.76, 289.36°)
OKLaboklab(22.55% -0.0119 -0.0783)
OKLCHoklch(22.55% 0.079 261.4)
XYZxyz(1.3353, 1.0975, 4.9910)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051940 #402C05
analogous
#053640 #051940 #0E0540
triadic
#051940 #400519 #194005
tetradic
#051940 #400536 #402C05 #05400E
square
#051940 #400536 #402C05 #05400E
split-complementary
#051940 #400E05 #364005
monochromatic
#020B1C #020B1C #051940 #092F79 #0E45B2

Accessibility & contrast

On white

17.22
#051940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#051940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051940
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051940#FFFFFF#000000##FFFFFF
##0519401.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #051940;
/* rgb */ color: rgb(5, 25, 64);
/* oklch */ color: oklch(22.5% 0.079 261.4);
Tailwind
colors: {
  custom: {
    50: '#515575',
    500: '#051940',
    950: '#000000',
  },
}
SCSS
$custom: #051940;
$custom-light: #515575;
$custom-dark: #000000;
JSON
{
  "hex": "#051940",
  "rgb": {
    "r": 5,
    "g": 25,
    "b": 64
  },
  "hsl": {
    "h": 219.661,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22549,
    "c": 0.07916,
    "h": 261.4
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#051940
secondary
#816020
accent
#B52CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #051940

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

Preview Lab → · Contrast checker → · Palette generator →

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