#170B51#170B51

#170B51 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.117 H 279.6°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#170B51
RGBrgb(23, 11, 81)
HSLhsl(250, 76%, 18%)
HSVhsv(250, 86%, 32%)
CMYKcmyk(71.6%, 86.4%, 0%, 68.2%)
CIE-LABlab(9.12, 28.79, -40.02)
CIE-LCHlch(9.12, 49.30, 305.73°)
OKLaboklab(22.94% 0.0196 -0.1156)
OKLCHoklch(22.94% 0.117 279.6)
XYZxyz(1.9578, 1.0154, 7.8758)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B51 #45510B
analogous
#0B2251 #170B51 #3A0B51
triadic
#170B51 #51170B #0B5117
tetradic
#170B51 #510B22 #45510B #0B513A
square
#170B51 #510B22 #45510B #0B513A
split-complementary
#170B51 #513A0B #22510B
monochromatic
#08041B #08041B #170B51 #261287 #361ABD

Accessibility & contrast

On white

17.45
#170B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B51
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B51#FFFFFF#000000##FFFFFF
##170B511.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170b51;
/* rgb */ color: rgb(23, 11, 81);
/* oklch */ color: oklch(22.9% 0.117 279.6);
Tailwind
colors: {
  custom: {
    50: '#5e4c83',
    500: '#170b51',
    950: '#000000',
  },
}
SCSS
$custom: #170b51;
$custom-light: #5e4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#170b51",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 81
  },
  "hsl": {
    "h": 250.286,
    "s": 76.087,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2294,
    "c": 0.11721,
    "h": 279.6
  },
  "luminance": 0.01016
}

Semantic roles & 50–950 ramp

primary
#170B51
secondary
#7C8D2B
accent
#F335D2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170B51

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

Preview Lab → · Contrast checker → · Palette generator →

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