#05172C#05172C

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

Color values

HEX#05172C
RGBrgb(5, 23, 44)
HSLhsl(212, 80%, 10%)
HSVhsv(212, 89%, 17%)
CMYKcmyk(88.6%, 47.7%, 0%, 82.7%)
CIE-LABlab(7.47, 1.54, -16.37)
CIE-LCHlch(7.47, 16.44, 275.37°)
OKLaboklab(20.24% -0.0141 -0.0467)
OKLCHoklch(20.24% 0.049 253.3)
XYZxyz(0.8234, 0.8268, 2.4986)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05172C #2C1A05
analogous
#052B2C #05172C #07052C
triadic
#05172C #2C0517 #172C05
tetradic
#05172C #2C052B #2C1A05 #052C07
square
#05172C #2C052B #2C1A05 #052C07
split-complementary
#05172C #2C0705 #2B2C05
monochromatic
#030E1B #030E1B #05172C #0B3463 #11509A

Accessibility & contrast

On white

18.02
#05172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#05172C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05172C
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05172C#FFFFFF#000000##FFFFFF
##05172C1.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182D
Deuteranopia (green-blind)
#07152C
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05172c;
/* rgb */ color: rgb(5, 23, 44);
/* oklch */ color: oklch(20.2% 0.049 253.3);
Tailwind
colors: {
  custom: {
    50: '#4a5365',
    500: '#05172c',
    950: '#000000',
  },
}
SCSS
$custom: #05172c;
$custom-light: #4a5365;
$custom-dark: #000000;
JSON
{
  "hex": "#05172c",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 212.308,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20245,
    "c": 0.04881,
    "h": 253.3
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#05172C
secondary
#6E491F
accent
#9B32F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05172C

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

Preview Lab → · Contrast checker → · Palette generator →

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