#05173C#05173C

#05173C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.076 H 261.9°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#05173C
RGBrgb(5, 23, 60)
HSLhsl(220, 85%, 13%)
HSVhsv(220, 92%, 24%)
CMYKcmyk(91.7%, 61.7%, 0%, 76.5%)
CIE-LABlab(8.75, 9.24, -25.96)
CIE-LCHlch(8.75, 27.55, 289.59°)
OKLaboklab(21.65% -0.0107 -0.0749)
OKLCHoklch(21.65% 0.076 261.9)
XYZxyz(1.1843, 0.9712, 4.3991)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05173C #3C2A05
analogous
#05323C #05173C #0F053C
triadic
#05173C #3C0517 #173C05
tetradic
#05173C #3C0532 #3C2A05 #053C0F
square
#05173C #3C0532 #3C2A05 #053C0F
split-complementary
#05173C #3C0F05 #323C05
monochromatic
#020B1C #020B1C #05173C #0A2D74 #0E42AD

Accessibility & contrast

On white

17.58
#05173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05173C
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05173C#FFFFFF#000000##FFFFFF
##05173C1.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#00173B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #05173c;
/* rgb */ color: rgb(5, 23, 60);
/* oklch */ color: oklch(21.7% 0.076 261.9);
Tailwind
colors: {
  custom: {
    50: '#505372',
    500: '#05173c',
    950: '#000000',
  },
}
SCSS
$custom: #05173c;
$custom-light: #505372;
$custom-dark: #000000;
JSON
{
  "hex": "#05173c",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 220.364,
    "s": 84.615,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21653,
    "c": 0.07563,
    "h": 261.9
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#05173C
secondary
#7D5E20
accent
#B72DFB
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #05173C

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

Preview Lab → · Contrast checker → · Palette generator →

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