#170D5C#170D5C

#170D5C is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.6% C 0.130 H 276.6°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#170D5C
RGBrgb(23, 13, 92)
HSLhsl(248, 75%, 21%)
HSVhsv(248, 86%, 36%)
CMYKcmyk(75%, 85.9%, 0%, 63.9%)
CIE-LABlab(10.87, 31.46, -44.61)
CIE-LCHlch(10.87, 54.59, 305.19°)
OKLaboklab(24.56% 0.015 -0.1289)
OKLCHoklch(24.56% 0.13 276.6)
XYZxyz(2.4284, 1.2425, 10.2350)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D5C #525C0D
analogous
#0D2A5C #170D5C #3E0D5C
triadic
#170D5C #5C170D #0D5C17
tetradic
#170D5C #5C0D2A #525C0D #0D5C3E
square
#170D5C #5C0D2A #525C0D #0D5C3E
split-complementary
#170D5C #5C3E0D #2A5C0D
monochromatic
#07041B #0A0526 #170D5C #241592 #321CC7

Accessibility & contrast

On white

16.82
#170D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#170D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D5C
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D5C#FFFFFF#000000##FFFFFF
##170D5C1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002535
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #170d5c;
/* rgb */ color: rgb(23, 13, 92);
/* oklch */ color: oklch(24.6% 0.130 276.6);
Tailwind
colors: {
  custom: {
    50: '#614e8b',
    500: '#170d5c',
    950: '#000000',
  },
}
SCSS
$custom: #170d5c;
$custom-light: #614e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#170d5c",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 247.595,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24559,
    "c": 0.12981,
    "h": 276.6
  },
  "luminance": 0.01243
}

Semantic roles & 50–950 ramp

primary
#170D5C
secondary
#89962F
accent
#F236DA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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