#170D4F#170D4F

#170D4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 23.0% C 0.112 H 279.7°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#170D4F
RGBrgb(23, 13, 79)
HSLhsl(249, 72%, 18%)
HSVhsv(249, 84%, 31%)
CMYKcmyk(70.9%, 83.5%, 0%, 69%)
CIE-LABlab(9.27, 26.95, -38.39)
CIE-LCHlch(9.27, 46.90, 305.07°)
OKLaboklab(22.98% 0.019 -0.1108)
OKLCHoklch(22.98% 0.112 279.7)
XYZxyz(1.9081, 1.0344, 7.4947)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D4F #454F0D
analogous
#0D244F #170D4F #380D4F
triadic
#170D4F #4F170D #0D4F17
tetradic
#170D4F #4F0D24 #454F0D #0D4F38
square
#170D4F #4F0D24 #454F0D #0D4F38
split-complementary
#170D4F #4F380D #244F0D
monochromatic
#08041A #08041A #170D4F #261684 #361EB8

Accessibility & contrast

On white

17.40
#170D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#170D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D4F
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D4F#FFFFFF#000000##FFFFFF
##170D4F1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170d4f;
/* rgb */ color: rgb(23, 13, 79);
/* oklch */ color: oklch(23.0% 0.112 279.7);
Tailwind
colors: {
  custom: {
    50: '#5e4d81',
    500: '#170d4f',
    950: '#000000',
  },
}
SCSS
$custom: #170d4f;
$custom-light: #5e4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#170d4f",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 249.091,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22977,
    "c": 0.11243,
    "h": 279.7
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#170D4F
secondary
#7C8A2E
accent
#EE39D3
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #170D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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