#05173B#05173B

#05173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.6% C 0.074 H 261.6°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#05173B
RGBrgb(5, 23, 59)
HSLhsl(220, 84%, 13%)
HSVhsv(220, 92%, 23%)
CMYKcmyk(91.5%, 61%, 0%, 76.9%)
CIE-LABlab(8.66, 8.76, -25.39)
CIE-LCHlch(8.66, 26.86, 289.04°)
OKLaboklab(21.56% -0.0108 -0.0732)
OKLCHoklch(21.56% 0.074 261.6)
XYZxyz(1.1581, 0.9607, 4.2612)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05173B #3B2905
analogous
#05323B #05173B #0E053B
triadic
#05173B #3B0517 #173B05
tetradic
#05173B #3B0532 #3B2905 #053B0E
square
#05173B #3B0532 #3B2905 #053B0E
split-complementary
#05173B #3B0E05 #323B05
monochromatic
#020B1C #020B1C #05173B #0A2D73 #0F43AC

Accessibility & contrast

On white

17.61
#05173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05173B
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05173B#FFFFFF#000000##FFFFFF
##05173B1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011B3C
Deuteranopia (green-blind)
#00163A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #05173b;
/* rgb */ color: rgb(5, 23, 59);
/* oklch */ color: oklch(21.6% 0.074 261.6);
Tailwind
colors: {
  custom: {
    50: '#4f5371',
    500: '#05173b',
    950: '#000000',
  },
}
SCSS
$custom: #05173b;
$custom-light: #4f5371;
$custom-dark: #000000;
JSON
{
  "hex": "#05173b",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 220,
    "s": 84.375,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21557,
    "c": 0.07399,
    "h": 261.6
  },
  "luminance": 0.00961
}

Semantic roles & 50–950 ramp

primary
#05173B
secondary
#7C5D20
accent
#B62DFB
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #05173B

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

Preview Lab → · Contrast checker → · Palette generator →

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