#05173F#05173F

#05173F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.081 H 262.6°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#05173F
RGBrgb(5, 23, 63)
HSLhsl(221, 85%, 13%)
HSVhsv(221, 92%, 25%)
CMYKcmyk(92.1%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.02, 10.66, -27.65)
CIE-LCHlch(9.02, 29.63, 291.09°)
OKLaboklab(21.95% -0.0104 -0.0798)
OKLCHoklch(21.95% 0.081 262.6)
XYZxyz(1.2659, 1.0038, 4.8287)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05173F #3F2D05
analogous
#05343F #05173F #10053F
triadic
#05173F #3F0517 #173F05
tetradic
#05173F #3F0534 #3F2D05 #053F10
square
#05173F #3F0534 #3F2D05 #053F10
split-complementary
#05173F #3F1005 #343F05
monochromatic
#020A1C #020A1C #05173F #092C78 #0E40B0

Accessibility & contrast

On white

17.49
#05173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#05173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05173F
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05173F#FFFFFF#000000##FFFFFF
##05173F1.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #05173f;
/* rgb */ color: rgb(5, 23, 63);
/* oklch */ color: oklch(21.9% 0.081 262.6);
Tailwind
colors: {
  custom: {
    50: '#515374',
    500: '#05173f',
    950: '#000000',
  },
}
SCSS
$custom: #05173f;
$custom-light: #515374;
$custom-dark: #000000;
JSON
{
  "hex": "#05173f",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 221.379,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21947,
    "c": 0.08052,
    "h": 262.6
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#05173F
secondary
#806220
accent
#BB2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #05173F

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

Preview Lab → · Contrast checker → · Palette generator →

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