#170F57#170F57

#170F57 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.2% C 0.121 H 277.3°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#170F57
RGBrgb(23, 15, 87)
HSLhsl(247, 71%, 20%)
HSVhsv(247, 83%, 34%)
CMYKcmyk(73.6%, 82.8%, 0%, 65.9%)
CIE-LABlab(10.64, 28.59, -41.60)
CIE-LCHlch(10.64, 50.48, 304.50°)
OKLaboklab(24.22% 0.0154 -0.1202)
OKLCHoklch(24.22% 0.121 277.3)
XYZxyz(2.2439, 1.2117, 9.1306)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F57 #4F570F
analogous
#0F2B57 #170F57 #3B0F57
triadic
#170F57 #57170F #0F5717
tetradic
#170F57 #570F2B #4F570F #0F573B
square
#170F57 #570F2B #4F570F #0F573B
split-complementary
#170F57 #573B0F #2B570F
monochromatic
#07051A #090623 #170F57 #25188B #3321BF

Accessibility & contrast

On white

16.90
#170F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#170F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F57
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F57#FFFFFF#000000##FFFFFF
##170F571.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002059
Deuteranopia (green-blind)
#001A56
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #170f57;
/* rgb */ color: rgb(23, 15, 87);
/* oklch */ color: oklch(24.2% 0.121 277.3);
Tailwind
colors: {
  custom: {
    50: '#5f4f87',
    500: '#170f57',
    950: '#000000',
  },
}
SCSS
$custom: #170f57;
$custom-light: #5f4f87;
$custom-dark: #000000;
JSON
{
  "hex": "#170f57",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 246.667,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.24222,
    "c": 0.12119,
    "h": 277.3
  },
  "luminance": 0.01212
}

Semantic roles & 50–950 ramp

primary
#170F57
secondary
#869131
accent
#ED3AD9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #170F57

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

Preview Lab → · Contrast checker → · Palette generator →

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