#170F52#170F52

#170F52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.6% C 0.114 H 278.4°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#170F52
RGBrgb(23, 15, 82)
HSLhsl(247, 69%, 19%)
HSVhsv(247, 82%, 32%)
CMYKcmyk(72%, 81.7%, 0%, 67.8%)
CIE-LABlab(10.05, 26.81, -39.17)
CIE-LCHlch(10.05, 47.47, 304.39°)
OKLaboklab(23.63% 0.0167 -0.1131)
OKLCHoklch(23.63% 0.114 278.4)
XYZxyz(2.0467, 1.1328, 8.0918)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F52 #4A520F
analogous
#0F2952 #170F52 #390F52
triadic
#170F52 #52170F #0F5217
tetradic
#170F52 #520F29 #4A520F #0F5239
square
#170F52 #520F29 #4A520F #0F5239
split-complementary
#170F52 #52390F #29520F
monochromatic
#07051A #08061E #170F52 #261886 #3422B9

Accessibility & contrast

On white

17.12
#170F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#170F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F52
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F52#FFFFFF#000000##FFFFFF
##170F521.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E54
Deuteranopia (green-blind)
#001951
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #170f52;
/* rgb */ color: rgb(23, 15, 82);
/* oklch */ color: oklch(23.6% 0.114 278.4);
Tailwind
colors: {
  custom: {
    50: '#5e4f83',
    500: '#170f52',
    950: '#000000',
  },
}
SCSS
$custom: #170f52;
$custom-light: #5e4f83;
$custom-dark: #000000;
JSON
{
  "hex": "#170f52",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 247.164,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2363,
    "c": 0.11435,
    "h": 278.4
  },
  "luminance": 0.01133
}

Semantic roles & 50–950 ramp

primary
#170F52
secondary
#818C31
accent
#EC3CD7
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #170F52

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

Preview Lab → · Contrast checker → · Palette generator →

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