#170D51#170D51

#170D51 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.115 H 279.2°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#170D51
RGBrgb(23, 13, 81)
HSLhsl(249, 72%, 18%)
HSVhsv(249, 84%, 32%)
CMYKcmyk(71.6%, 84%, 0%, 68.2%)
CIE-LABlab(9.51, 27.65, -39.37)
CIE-LCHlch(9.51, 48.11, 305.08°)
OKLaboklab(23.22% 0.0184 -0.1137)
OKLCHoklch(23.22% 0.115 279.2)
XYZxyz(1.9820, 1.0639, 7.8839)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D51 #47510D
analogous
#0D2551 #170D51 #390D51
triadic
#170D51 #51170D #0D5117
tetradic
#170D51 #510D25 #47510D #0D5139
square
#170D51 #510D25 #47510D #0D5139
split-complementary
#170D51 #51390D #25510D
monochromatic
#07041A #08051C #170D51 #261586 #351EBA

Accessibility & contrast

On white

17.32
#170D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170D51
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D51#FFFFFF#000000##FFFFFF
##170D511.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170d51;
/* rgb */ color: rgb(23, 13, 81);
/* oklch */ color: oklch(23.2% 0.115 279.2);
Tailwind
colors: {
  custom: {
    50: '#5e4d83',
    500: '#170d51',
    950: '#000000',
  },
}
SCSS
$custom: #170d51;
$custom-light: #5e4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#170d51",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 248.824,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23215,
    "c": 0.11516,
    "h": 279.2
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#170D51
secondary
#7E8C2E
accent
#EF39D4
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170D51

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

Preview Lab → · Contrast checker → · Palette generator →

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