#170E51#170E51

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

Color values

HEX#170E51
RGBrgb(23, 14, 81)
HSLhsl(248, 71%, 19%)
HSVhsv(248, 83%, 32%)
CMYKcmyk(71.6%, 82.7%, 0%, 68.2%)
CIE-LABlab(9.72, 27.06, -39.03)
CIE-LCHlch(9.72, 47.49, 304.73°)
OKLaboklab(23.36% 0.0177 -0.1127)
OKLCHoklch(23.36% 0.114 278.9)
XYZxyz(1.9951, 1.0902, 7.8883)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E51 #48510E
analogous
#0E2651 #170E51 #380E51
triadic
#170E51 #51170E #0E5117
tetradic
#170E51 #510E26 #48510E #0E5138
square
#170E51 #510E26 #48510E #0E5138
split-complementary
#170E51 #51380E #26510E
monochromatic
#07051A #08051D #170E51 #261785 #3520B9

Accessibility & contrast

On white

17.24
#170E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170E51
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E51#FFFFFF#000000##FFFFFF
##170E511.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170e51;
/* rgb */ color: rgb(23, 14, 81);
/* oklch */ color: oklch(23.4% 0.114 278.9);
Tailwind
colors: {
  custom: {
    50: '#5e4e83',
    500: '#170e51',
    950: '#000000',
  },
}
SCSS
$custom: #170e51;
$custom-light: #5e4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#170e51",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 248.06,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23361,
    "c": 0.11408,
    "h": 278.9
  },
  "luminance": 0.0109
}

Semantic roles & 50–950 ramp

primary
#170E51
secondary
#7F8C2F
accent
#ED3AD5
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170E51

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

Preview Lab → · Contrast checker → · Palette generator →

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