#170B50#170B50

#170B50 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.116 H 279.9°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#170B50
RGBrgb(23, 11, 80)
HSLhsl(250, 76%, 18%)
HSVhsv(250, 86%, 31%)
CMYKcmyk(71.2%, 86.3%, 0%, 68.6%)
CIE-LABlab(9.00, 28.45, -39.54)
CIE-LCHlch(9.00, 48.71, 305.73°)
OKLaboklab(22.82% 0.0199 -0.1141)
OKLCHoklch(22.82% 0.116 279.9)
XYZxyz(1.9205, 1.0005, 7.6798)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B50 #44500B
analogous
#0B2150 #170B50 #390B50
triadic
#170B50 #50170B #0B5017
tetradic
#170B50 #500B21 #44500B #0B5039
square
#170B50 #500B21 #44500B #0B5039
split-complementary
#170B50 #50390B #21500B
monochromatic
#08041B #08041B #170B50 #261286 #361ABC

Accessibility & contrast

On white

17.50
#170B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B50
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B50#FFFFFF#000000##FFFFFF
##170B501.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C52
Deuteranopia (green-blind)
#00174F
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170b50;
/* rgb */ color: rgb(23, 11, 80);
/* oklch */ color: oklch(22.8% 0.116 279.9);
Tailwind
colors: {
  custom: {
    50: '#5e4c82',
    500: '#170b50',
    950: '#000000',
  },
}
SCSS
$custom: #170b50;
$custom-light: #5e4c82;
$custom-dark: #000000;
JSON
{
  "hex": "#170b50",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 80
  },
  "hsl": {
    "h": 250.435,
    "s": 75.824,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22818,
    "c": 0.11588,
    "h": 279.9
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#170B50
secondary
#7B8C2B
accent
#F235D2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #170B50

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

Preview Lab → · Contrast checker → · Palette generator →

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