#170D5F#170D5F

#170D5F is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.9% C 0.134 H 276.0°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#170D5F
RGBrgb(23, 13, 95)
HSLhsl(247, 76%, 21%)
HSVhsv(247, 86%, 37%)
CMYKcmyk(75.8%, 86.3%, 0%, 62.7%)
CIE-LABlab(11.25, 32.47, -46.00)
CIE-LCHlch(11.25, 56.31, 305.22°)
OKLaboklab(24.93% 0.0141 -0.133)
OKLCHoklch(24.93% 0.134 276)
XYZxyz(2.5622, 1.2960, 10.9394)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D5F #555F0D
analogous
#0D2C5F #170D5F #400D5F
triadic
#170D5F #5F170D #0D5F17
tetradic
#170D5F #5F0D2C #555F0D #0D5F40
square
#170D5F #5F0D2C #555F0D #0D5F40
split-complementary
#170D5F #5F400D #2C5F0D
monochromatic
#07041B #0A0629 #170D5F #241495 #311CCB

Accessibility & contrast

On white

16.68
#170D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D5F
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D5F#FFFFFF#000000##FFFFFF
##170D5F1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002161
Deuteranopia (green-blind)
#001A5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #170d5f;
/* rgb */ color: rgb(23, 13, 95);
/* oklch */ color: oklch(24.9% 0.134 276.0);
Tailwind
colors: {
  custom: {
    50: '#624e8d',
    500: '#170d5f',
    950: '#000000',
  },
}
SCSS
$custom: #170d5f;
$custom-light: #624e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#170d5f",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 95
  },
  "hsl": {
    "h": 247.317,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24934,
    "c": 0.1337,
    "h": 276
  },
  "luminance": 0.01296
}

Semantic roles & 50–950 ramp

primary
#170D5F
secondary
#8C992F
accent
#F335DB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #170D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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