#051640#051640

#051640 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.084 H 263.5°. Best body text is #FFFFFF at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#051640
RGBrgb(5, 22, 64)
HSLhsl(223, 86%, 14%)
HSVhsv(223, 92%, 25%)
CMYKcmyk(92.2%, 65.6%, 0%, 74.9%)
CIE-LABlab(8.79, 11.93, -28.74)
CIE-LCHlch(8.79, 31.12, 292.55°)
OKLaboklab(21.8% -0.0095 -0.0831)
OKLCHoklch(21.8% 0.084 263.5)
XYZxyz(1.2746, 0.9761, 4.9707)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051640 #402F05
analogous
#053340 #051640 #110540
triadic
#051640 #400516 #164005
tetradic
#051640 #400533 #402F05 #054011
square
#051640 #400533 #402F05 #054011
split-complementary
#051640 #401105 #334005
monochromatic
#020A1C #020A1C #051640 #092A79 #0E3DB2

Accessibility & contrast

On white

17.57
#051640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#051640 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051640
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051640#FFFFFF#000000##FFFFFF
##0516401.0017.571.2017.57
#FFFFFF17.571.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051640;
/* rgb */ color: rgb(5, 22, 64);
/* oklch */ color: oklch(21.8% 0.084 263.5);
Tailwind
colors: {
  custom: {
    50: '#515275',
    500: '#051640',
    950: '#000000',
  },
}
SCSS
$custom: #051640;
$custom-light: #515275;
$custom-dark: #000000;
JSON
{
  "hex": "#051640",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 64
  },
  "hsl": {
    "h": 222.712,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21802,
    "c": 0.0836,
    "h": 263.5
  },
  "luminance": 0.00976
}

Semantic roles & 50–950 ramp

primary
#051640
secondary
#816520
accent
#C02CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #051640

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

Preview Lab → · Contrast checker → · Palette generator →

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