#05173A#05173A

#05173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.072 H 261.3°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#05173A
RGBrgb(5, 23, 58)
HSLhsl(220, 84%, 12%)
HSVhsv(220, 91%, 23%)
CMYKcmyk(91.4%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.57, 8.29, -24.81)
CIE-LCHlch(8.57, 26.16, 288.47°)
OKLaboklab(21.46% -0.0109 -0.0715)
OKLCHoklch(21.46% 0.072 261.3)
XYZxyz(1.1324, 0.9504, 4.1259)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05173A #3A2805
analogous
#05313A #05173A #0E053A
triadic
#05173A #3A0517 #173A05
tetradic
#05173A #3A0531 #3A2805 #053A0E
square
#05173A #3A0531 #3A2805 #053A0E
split-complementary
#05173A #3A0E05 #313A05
monochromatic
#020B1C #020B1C #05173A #0A2D72 #0F44AB

Accessibility & contrast

On white

17.64
#05173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#05173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05173A
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05173A#FFFFFF#000000##FFFFFF
##05173A1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#001639
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #05173a;
/* rgb */ color: rgb(5, 23, 58);
/* oklch */ color: oklch(21.5% 0.072 261.3);
Tailwind
colors: {
  custom: {
    50: '#4f5370',
    500: '#05173a',
    950: '#000000',
  },
}
SCSS
$custom: #05173a;
$custom-light: #4f5370;
$custom-dark: #000000;
JSON
{
  "hex": "#05173a",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 219.623,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21462,
    "c": 0.07233,
    "h": 261.3
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#05173A
secondary
#7B5C20
accent
#B52DFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #05173A

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

Preview Lab → · Contrast checker → · Palette generator →

#05173A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva