#170D57#170D57

#170D57 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 23.9% C 0.123 H 277.7°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#170D57
RGBrgb(23, 13, 87)
HSLhsl(248, 74%, 20%)
HSVhsv(248, 85%, 34%)
CMYKcmyk(73.6%, 85.1%, 0%, 65.9%)
CIE-LABlab(10.24, 29.74, -42.27)
CIE-LCHlch(10.24, 51.68, 305.14°)
OKLaboklab(23.94% 0.0166 -0.1221)
OKLCHoklch(23.94% 0.123 277.7)
XYZxyz(2.2170, 1.1579, 9.1216)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D57 #4D570D
analogous
#0D2857 #170D57 #3C0D57
triadic
#170D57 #57170D #0D5717
tetradic
#170D57 #570D28 #4D570D #0D573C
square
#170D57 #570D28 #4D570D #0D573C
split-complementary
#170D57 #573C0D #28570D
monochromatic
#07041B #090522 #170D57 #25158C #331DC1

Accessibility & contrast

On white

17.05
#170D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D57
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D57#FFFFFF#000000##FFFFFF
##170D571.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F59
Deuteranopia (green-blind)
#001956
Tritanopia (blue-blind)
#002332
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #170d57;
/* rgb */ color: rgb(23, 13, 87);
/* oklch */ color: oklch(23.9% 0.123 277.7);
Tailwind
colors: {
  custom: {
    50: '#604e87',
    500: '#170d57',
    950: '#000000',
  },
}
SCSS
$custom: #170d57;
$custom-light: #604e87;
$custom-dark: #000000;
JSON
{
  "hex": "#170d57",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 87
  },
  "hsl": {
    "h": 248.108,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.23942,
    "c": 0.12323,
    "h": 277.7
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#170D57
secondary
#84922E
accent
#F137D8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05010B
muted
#7A777C

Preview Lab

Preview with #170D57

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

Preview Lab → · Contrast checker → · Palette generator →

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