#170D5E#170D5E

#170D5E is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.8% C 0.132 H 276.2°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#170D5E
RGBrgb(23, 13, 94)
HSLhsl(247, 76%, 21%)
HSVhsv(247, 86%, 37%)
CMYKcmyk(75.5%, 86.2%, 0%, 63.1%)
CIE-LABlab(11.12, 32.14, -45.54)
CIE-LCHlch(11.12, 55.74, 305.21°)
OKLaboklab(24.81% 0.0144 -0.1316)
OKLCHoklch(24.81% 0.132 276.2)
XYZxyz(2.5170, 1.2779, 10.7015)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D5E #545E0D
analogous
#0D2B5E #170D5E #3F0D5E
triadic
#170D5E #5E170D #0D5E17
tetradic
#170D5E #5E0D2B #545E0D #0D5E3F
square
#170D5E #5E0D2B #545E0D #0D5E3F
split-complementary
#170D5E #5E3F0D #2B5E0D
monochromatic
#07041B #0A0628 #170D5E #241494 #311CCA

Accessibility & contrast

On white

16.73
#170D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#170D5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D5E
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D5E#FFFFFF#000000##FFFFFF
##170D5E1.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002160
Deuteranopia (green-blind)
#001A5D
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170d5e;
/* rgb */ color: rgb(23, 13, 94);
/* oklch */ color: oklch(24.8% 0.132 276.2);
Tailwind
colors: {
  custom: {
    50: '#614e8d',
    500: '#170d5e',
    950: '#000000',
  },
}
SCSS
$custom: #170d5e;
$custom-light: #614e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#170d5e",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 94
  },
  "hsl": {
    "h": 247.407,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24809,
    "c": 0.13241,
    "h": 276.2
  },
  "luminance": 0.01278
}

Semantic roles & 50–950 ramp

primary
#170D5E
secondary
#8B982F
accent
#F236DB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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