#051638#051638

#051638 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.0% C 0.071 H 261.6°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#051638
RGBrgb(5, 22, 56)
HSLhsl(220, 84%, 12%)
HSVhsv(220, 91%, 22%)
CMYKcmyk(91.1%, 60.7%, 0%, 78%)
CIE-LABlab(8.05, 8.14, -24.21)
CIE-LCHlch(8.05, 25.54, 288.58°)
OKLaboklab(21.01% -0.0103 -0.0698)
OKLCHoklch(21.01% 0.071 261.6)
XYZxyz(1.0630, 0.8915, 3.8567)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051638 #382705
analogous
#053038 #051638 #0E0538
triadic
#051638 #380516 #163805
tetradic
#051638 #380530 #382705 #05380E
square
#051638 #380530 #382705 #05380E
split-complementary
#051638 #380E05 #303805
monochromatic
#030B1C #030B1C #051638 #0A2C70 #0F42A8

Accessibility & contrast

On white

17.82
#051638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#051638 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051638
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051638#FFFFFF#000000##FFFFFF
##0516381.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A39
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#001E24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051638;
/* rgb */ color: rgb(5, 22, 56);
/* oklch */ color: oklch(21.0% 0.071 261.6);
Tailwind
colors: {
  custom: {
    50: '#4e526f',
    500: '#051638',
    950: '#000000',
  },
}
SCSS
$custom: #051638;
$custom-light: #4e526f;
$custom-dark: #000000;
JSON
{
  "hex": "#051638",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 56
  },
  "hsl": {
    "h": 220,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21011,
    "c": 0.07052,
    "h": 261.6
  },
  "luminance": 0.00892
}

Semantic roles & 50–950 ramp

primary
#051638
secondary
#795B20
accent
#B62EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051638

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

Preview Lab → · Contrast checker → · Palette generator →

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