#170E52#170E52

#170E52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.5% C 0.115 H 278.7°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#170E52
RGBrgb(23, 14, 82)
HSLhsl(248, 71%, 19%)
HSVhsv(248, 83%, 32%)
CMYKcmyk(72%, 82.9%, 0%, 67.8%)
CIE-LABlab(9.84, 27.41, -39.52)
CIE-LCHlch(9.84, 48.10, 304.75°)
OKLaboklab(23.48% 0.0174 -0.1141)
OKLCHoklch(23.48% 0.115 278.7)
XYZxyz(2.0329, 1.1053, 8.0872)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E52 #49520E
analogous
#0E2752 #170E52 #390E52
triadic
#170E52 #52170E #0E5217
tetradic
#170E52 #520E27 #49520E #0E5239
square
#170E52 #520E27 #49520E #0E5239
split-complementary
#170E52 #52390E #27520E
monochromatic
#07041A #08051E #170E52 #261786 #3420BB

Accessibility & contrast

On white

17.20
#170E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170E52
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E52#FFFFFF#000000##FFFFFF
##170E521.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170e52;
/* rgb */ color: rgb(23, 14, 82);
/* oklch */ color: oklch(23.5% 0.115 278.7);
Tailwind
colors: {
  custom: {
    50: '#5e4e83',
    500: '#170e52',
    950: '#000000',
  },
}
SCSS
$custom: #170e52;
$custom-light: #5e4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#170e52",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 82
  },
  "hsl": {
    "h": 247.941,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2348,
    "c": 0.11545,
    "h": 278.7
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

primary
#170E52
secondary
#808C2F
accent
#EE3AD6
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170E52

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

Preview Lab → · Contrast checker → · Palette generator →

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