#170D4C#170D4C

#170D4C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.108 H 280.5°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#170D4C
RGBrgb(23, 13, 76)
HSLhsl(250, 71%, 17%)
HSVhsv(250, 83%, 30%)
CMYKcmyk(69.7%, 82.9%, 0%, 70.2%)
CIE-LABlab(8.92, 25.89, -36.89)
CIE-LCHlch(8.92, 45.07, 305.06°)
OKLaboklab(22.62% 0.0198 -0.1065)
OKLCHoklch(22.62% 0.108 280.5)
XYZxyz(1.8014, 0.9917, 6.9326)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D4C #424C0D
analogous
#0D224C #170D4C #370D4C
triadic
#170D4C #4C170D #0D4C17
tetradic
#170D4C #4C0D22 #424C0D #0D4C37
square
#170D4C #4C0D22 #424C0D #0D4C37
split-complementary
#170D4C #4C370D #224C0D
monochromatic
#08041A #08041A #170D4C #271680 #371FB5

Accessibility & contrast

On white

17.52
#170D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D4C
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D4C#FFFFFF#000000##FFFFFF
##170D4C1.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170d4c;
/* rgb */ color: rgb(23, 13, 76);
/* oklch */ color: oklch(22.6% 0.108 280.5);
Tailwind
colors: {
  custom: {
    50: '#5d4d7f',
    500: '#170d4c',
    950: '#000000',
  },
}
SCSS
$custom: #170d4c;
$custom-light: #5d4d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#170d4c",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 249.524,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22623,
    "c": 0.10829,
    "h": 280.5
  },
  "luminance": 0.00992
}

Semantic roles & 50–950 ramp

primary
#170D4C
secondary
#79872E
accent
#EE3AD1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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