#170D52#170D52

#170D52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.117 H 278.9°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#170D52
RGBrgb(23, 13, 82)
HSLhsl(249, 73%, 19%)
HSVhsv(249, 84%, 32%)
CMYKcmyk(72%, 84.1%, 0%, 67.8%)
CIE-LABlab(9.63, 28.01, -39.86)
CIE-LCHlch(9.63, 48.72, 305.09°)
OKLaboklab(23.34% 0.0181 -0.1151)
OKLCHoklch(23.34% 0.117 278.9)
XYZxyz(2.0198, 1.0790, 8.0828)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D52 #48520D
analogous
#0D2552 #170D52 #390D52
triadic
#170D52 #52170D #0D5217
tetradic
#170D52 #520D25 #48520D #0D5239
square
#170D52 #520D25 #48520D #0D5239
split-complementary
#170D52 #52390D #25520D
monochromatic
#07041A #08051D #170D52 #261587 #351EBC

Accessibility & contrast

On white

17.27
#170D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#170D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D52
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D52#FFFFFF#000000##FFFFFF
##170D521.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #170d52;
/* rgb */ color: rgb(23, 13, 82);
/* oklch */ color: oklch(23.3% 0.117 278.9);
Tailwind
colors: {
  custom: {
    50: '#5e4d83',
    500: '#170d52',
    950: '#000000',
  },
}
SCSS
$custom: #170d52;
$custom-light: #5e4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#170d52",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 248.696,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23335,
    "c": 0.11652,
    "h": 278.9
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#170D52
secondary
#7F8D2E
accent
#EF38D5
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170D52

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

Preview Lab → · Contrast checker → · Palette generator →

#170D52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva