#170B46#170B46

#170B46 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.102 H 283.1°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#170B46
RGBrgb(23, 11, 70)
HSLhsl(252, 73%, 16%)
HSVhsv(252, 84%, 27%)
CMYKcmyk(67.1%, 84.3%, 0%, 72.5%)
CIE-LABlab(7.80, 24.97, -34.55)
CIE-LCHlch(7.80, 42.63, 305.86°)
OKLaboklab(21.62% 0.0231 -0.0996)
OKLCHoklch(21.62% 0.102 283.1)
XYZxyz(1.5782, 0.8636, 5.8767)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B46 #3A460B
analogous
#0B1C46 #170B46 #340B46
triadic
#170B46 #46170B #0B4617
tetradic
#170B46 #460B1C #3A460B #0B4634
square
#170B46 #460B1C #3A460B #0B4634
split-complementary
#170B46 #46340B #1C460B
monochromatic
#09041A #09041A #170B46 #28137B #3A1CB0

Accessibility & contrast

On white

17.91
#170B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B46
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B46#FFFFFF#000000##FFFFFF
##170B461.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170b46;
/* rgb */ color: rgb(23, 11, 70);
/* oklch */ color: oklch(21.6% 0.102 283.1);
Tailwind
colors: {
  custom: {
    50: '#5b4b7a',
    500: '#170b46',
    950: '#000000',
  },
}
SCSS
$custom: #170b46;
$custom-light: #5b4b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#170b46",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 252.203,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21624,
    "c": 0.10225,
    "h": 283.1
  },
  "luminance": 0.00864
}

Semantic roles & 50–950 ramp

primary
#170B46
secondary
#71822A
accent
#F038CA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170B46

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

Preview Lab → · Contrast checker → · Palette generator →

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