#051639#051639

#051639 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.072 H 261.9°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#051639
RGBrgb(5, 22, 57)
HSLhsl(220, 84%, 12%)
HSVhsv(220, 91%, 22%)
CMYKcmyk(91.2%, 61.4%, 0%, 77.6%)
CIE-LABlab(8.14, 8.62, -24.79)
CIE-LCHlch(8.14, 26.24, 289.17°)
OKLaboklab(21.11% -0.0102 -0.0715)
OKLCHoklch(21.11% 0.072 261.9)
XYZxyz(1.0877, 0.9014, 3.9868)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051639 #392805
analogous
#053039 #051639 #0E0539
triadic
#051639 #390516 #163905
tetradic
#051639 #390530 #392805 #05390E
square
#051639 #390530 #392805 #05390E
split-complementary
#051639 #390E05 #303905
monochromatic
#020B1C #020B1C #051639 #0A2C71 #0F41AA

Accessibility & contrast

On white

17.79
#051639 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051639
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051639#FFFFFF#000000##FFFFFF
##0516391.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011A3A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051639;
/* rgb */ color: rgb(5, 22, 57);
/* oklch */ color: oklch(21.1% 0.072 261.9);
Tailwind
colors: {
  custom: {
    50: '#4f5270',
    500: '#051639',
    950: '#000000',
  },
}
SCSS
$custom: #051639;
$custom-light: #4f5270;
$custom-dark: #000000;
JSON
{
  "hex": "#051639",
  "rgb": {
    "r": 5,
    "g": 22,
    "b": 57
  },
  "hsl": {
    "h": 220.385,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21107,
    "c": 0.07219,
    "h": 261.9
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#051639
secondary
#7A5D20
accent
#B72EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051639

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

Preview Lab → · Contrast checker → · Palette generator →

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