#051942#051942

#051942 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.082 H 261.9°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#051942
RGBrgb(5, 25, 66)
HSLhsl(220, 86%, 14%)
HSVhsv(220, 92%, 26%)
CMYKcmyk(92.4%, 62.1%, 0%, 74.1%)
CIE-LABlab(9.96, 10.47, -28.25)
CIE-LCHlch(9.96, 30.13, 290.34°)
OKLaboklab(22.74% -0.0116 -0.0816)
OKLCHoklch(22.74% 0.082 261.9)
XYZxyz(1.3932, 1.1207, 5.2961)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051942 #422E05
analogous
#053842 #051942 #100542
triadic
#051942 #420519 #194205
tetradic
#051942 #420538 #422E05 #054210
square
#051942 #420538 #422E05 #054210
split-complementary
#051942 #421005 #384205
monochromatic
#020B1C #020B1C #051942 #092F7B #0E44B4

Accessibility & contrast

On white

17.15
#051942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051942
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051942#FFFFFF#000000##FFFFFF
##0519421.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#001941
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #051942;
/* rgb */ color: rgb(5, 25, 66);
/* oklch */ color: oklch(22.7% 0.082 261.9);
Tailwind
colors: {
  custom: {
    50: '#515577',
    500: '#051942',
    950: '#000000',
  },
}
SCSS
$custom: #051942;
$custom-light: #515577;
$custom-dark: #000000;
JSON
{
  "hex": "#051942",
  "rgb": {
    "r": 5,
    "g": 25,
    "b": 66
  },
  "hsl": {
    "h": 220.328,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22742,
    "c": 0.08239,
    "h": 261.9
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#051942
secondary
#826220
accent
#B82CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #051942

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

Preview Lab → · Contrast checker → · Palette generator →

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