#05172A#05172A

#05172A is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.1% C 0.045 H 251.1°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#05172A
RGBrgb(5, 23, 42)
HSLhsl(211, 79%, 9%)
HSVhsv(211, 88%, 16%)
CMYKcmyk(88.1%, 45.2%, 0%, 83.5%)
CIE-LABlab(7.34, 0.61, -15.10)
CIE-LCHlch(7.34, 15.11, 272.30°)
OKLaboklab(20.09% -0.0147 -0.043)
OKLCHoklch(20.09% 0.045 251.1)
XYZxyz(0.7867, 0.8121, 2.3053)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05172A #2A1805
analogous
#052A2A #05172A #06052A
triadic
#05172A #2A0517 #172A05
tetradic
#05172A #2A052A #2A1805 #052A06
square
#05172A #2A052A #2A1805 #052A06
split-complementary
#05172A #2A0605 #2A2A05
monochromatic
#030F1B #030F1B #05172A #0C3561 #125397

Accessibility & contrast

On white

18.07
#05172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05172A
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05172A#FFFFFF#000000##FFFFFF
##05172A1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E182B
Deuteranopia (green-blind)
#09152A
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #05172a;
/* rgb */ color: rgb(5, 23, 42);
/* oklch */ color: oklch(20.1% 0.045 251.1);
Tailwind
colors: {
  custom: {
    50: '#4a5363',
    500: '#05172a',
    950: '#000000',
  },
}
SCSS
$custom: #05172a;
$custom-light: #4a5363;
$custom-dark: #000000;
JSON
{
  "hex": "#05172a",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 210.811,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.2009,
    "c": 0.04548,
    "h": 251.1
  },
  "luminance": 0.00812
}

Semantic roles & 50–950 ramp

primary
#05172A
secondary
#6C461F
accent
#9733F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #05172A

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

Preview Lab → · Contrast checker → · Palette generator →

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