#05172F#05172F

#05172F is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.5% C 0.054 H 255.8°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#05172F
RGBrgb(5, 23, 47)
HSLhsl(214, 81%, 10%)
HSVhsv(214, 89%, 18%)
CMYKcmyk(89.4%, 51.1%, 0%, 81.6%)
CIE-LABlab(7.68, 3.00, -18.25)
CIE-LCHlch(7.68, 18.50, 279.33°)
OKLaboklab(20.49% -0.0132 -0.0522)
OKLCHoklch(20.49% 0.054 255.8)
XYZxyz(0.8819, 0.8502, 2.8064)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05172F #2F1D05
analogous
#052C2F #05172F #08052F
triadic
#05172F #2F0517 #172F05
tetradic
#05172F #2F052C #2F1D05 #052F08
square
#05172F #2F052C #2F1D05 #052F08
split-complementary
#05172F #2F0805 #2C2F05
monochromatic
#030E1C #030E1C #05172F #0B3266 #114D9E

Accessibility & contrast

On white

17.95
#05172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05172F
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05172F#FFFFFF#000000##FFFFFF
##05172F1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1930
Deuteranopia (green-blind)
#05152F
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #05172f;
/* rgb */ color: rgb(5, 23, 47);
/* oklch */ color: oklch(20.5% 0.054 255.8);
Tailwind
colors: {
  custom: {
    50: '#4b5367',
    500: '#05172f',
    950: '#000000',
  },
}
SCSS
$custom: #05172f;
$custom-light: #4b5367;
$custom-dark: #000000;
JSON
{
  "hex": "#05172f",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 214.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20486,
    "c": 0.05386,
    "h": 255.8
  },
  "luminance": 0.0085
}

Semantic roles & 50–950 ramp

primary
#05172F
secondary
#714E1F
accent
#A231F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05172F

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

Preview Lab → · Contrast checker → · Palette generator →

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