#170B52#170B52

#170B52 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.119 H 279.4°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#170B52
RGBrgb(23, 11, 82)
HSLhsl(250, 76%, 18%)
HSVhsv(250, 87%, 32%)
CMYKcmyk(72%, 86.6%, 0%, 67.8%)
CIE-LABlab(9.24, 29.13, -40.50)
CIE-LCHlch(9.24, 49.89, 305.72°)
OKLaboklab(23.06% 0.0193 -0.117)
OKLCHoklch(23.06% 0.119 279.4)
XYZxyz(1.9955, 1.0305, 8.0748)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B52 #46520B
analogous
#0B2252 #170B52 #3A0B52
triadic
#170B52 #52170B #0B5217
tetradic
#170B52 #520B22 #46520B #0B523A
square
#170B52 #520B22 #46520B #0B523A
split-complementary
#170B52 #523A0B #22520B
monochromatic
#08041B #08041C #170B52 #261288 #3519BE

Accessibility & contrast

On white

17.41
#170B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B52
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B52#FFFFFF#000000##FFFFFF
##170B521.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001751
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #170b52;
/* rgb */ color: rgb(23, 11, 82);
/* oklch */ color: oklch(23.1% 0.119 279.4);
Tailwind
colors: {
  custom: {
    50: '#5f4c83',
    500: '#170b52',
    950: '#000000',
  },
}
SCSS
$custom: #170b52;
$custom-light: #5f4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#170b52",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 250.141,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23063,
    "c": 0.11854,
    "h": 279.4
  },
  "luminance": 0.01031
}

Semantic roles & 50–950 ramp

primary
#170B52
secondary
#7D8E2B
accent
#F335D3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #170B52

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

Preview Lab → · Contrast checker → · Palette generator →

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