#170F56#170F56

#170F56 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.1% C 0.120 H 277.5°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#170F56
RGBrgb(23, 15, 86)
HSLhsl(247, 70%, 20%)
HSVhsv(247, 83%, 34%)
CMYKcmyk(73.3%, 82.6%, 0%, 66.3%)
CIE-LABlab(10.52, 28.24, -41.12)
CIE-LCHlch(10.52, 49.88, 304.48°)
OKLaboklab(24.1% 0.0157 -0.1188)
OKLCHoklch(24.1% 0.12 277.5)
XYZxyz(2.2033, 1.1955, 8.9169)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F56 #4E560F
analogous
#0F2A56 #170F56 #3B0F56
triadic
#170F56 #56170F #0F5617
tetradic
#170F56 #560F2A #4E560F #0F563B
square
#170F56 #560F2A #4E560F #0F563B
split-complementary
#170F56 #563B0F #2A560F
monochromatic
#07051A #090622 #170F56 #25188A #3321BE

Accessibility & contrast

On white

16.95
#170F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F56
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F56#FFFFFF#000000##FFFFFF
##170F561.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170f56;
/* rgb */ color: rgb(23, 15, 86);
/* oklch */ color: oklch(24.1% 0.120 277.5);
Tailwind
colors: {
  custom: {
    50: '#5f4f87',
    500: '#170f56',
    950: '#000000',
  },
}
SCSS
$custom: #170f56;
$custom-light: #5f4f87;
$custom-dark: #000000;
JSON
{
  "hex": "#170f56",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 246.761,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24103,
    "c": 0.11984,
    "h": 277.5
  },
  "luminance": 0.01196
}

Semantic roles & 50–950 ramp

primary
#170F56
secondary
#859031
accent
#ED3BD9
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #170F56

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

Preview Lab → · Contrast checker → · Palette generator →

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