#05172B#05172B

#05172B is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.2% C 0.047 H 252.2°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#05172B
RGBrgb(5, 23, 43)
HSLhsl(212, 79%, 9%)
HSVhsv(212, 88%, 17%)
CMYKcmyk(88.4%, 46.5%, 0%, 83.1%)
CIE-LABlab(7.40, 1.07, -15.74)
CIE-LCHlch(7.40, 15.77, 273.88°)
OKLaboklab(20.17% -0.0144 -0.0449)
OKLCHoklch(20.17% 0.047 252.2)
XYZxyz(0.8049, 0.8194, 2.4008)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05172B #2B1905
analogous
#052A2B #05172B #06052B
triadic
#05172B #2B0517 #172B05
tetradic
#05172B #2B052A #2B1905 #052B06
square
#05172B #2B052A #2B1905 #052B06
split-complementary
#05172B #2B0605 #2A2B05
monochromatic
#030F1B #030F1B #05172B #0B3462 #125299

Accessibility & contrast

On white

18.04
#05172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#05172B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05172B
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05172B#FFFFFF#000000##FFFFFF
##05172B1.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E182C
Deuteranopia (green-blind)
#08152B
Tritanopia (blue-blind)
#001C1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05172b;
/* rgb */ color: rgb(5, 23, 43);
/* oklch */ color: oklch(20.2% 0.047 252.2);
Tailwind
colors: {
  custom: {
    50: '#4a5364',
    500: '#05172b',
    950: '#000000',
  },
}
SCSS
$custom: #05172b;
$custom-light: #4a5364;
$custom-dark: #000000;
JSON
{
  "hex": "#05172b",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 211.579,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20167,
    "c": 0.04715,
    "h": 252.2
  },
  "luminance": 0.00819
}

Semantic roles & 50–950 ramp

primary
#05172B
secondary
#6D481F
accent
#9932F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05172B

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

Preview Lab → · Contrast checker → · Palette generator →

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