#170B45#170B45

#170B45 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.101 H 283.4°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#170B45
RGBrgb(23, 11, 69)
HSLhsl(252, 73%, 16%)
HSVhsv(252, 84%, 27%)
CMYKcmyk(66.7%, 84.1%, 0%, 72.9%)
CIE-LABlab(7.69, 24.61, -34.03)
CIE-LCHlch(7.69, 41.99, 305.87°)
OKLaboklab(21.51% 0.0234 -0.0981)
OKLCHoklch(21.51% 0.101 283.4)
XYZxyz(1.5469, 0.8511, 5.7118)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B45 #39450B
analogous
#0B1C45 #170B45 #340B45
triadic
#170B45 #45170B #0B4517
tetradic
#170B45 #450B1C #39450B #0B4534
square
#170B45 #450B1C #39450B #0B4534
split-complementary
#170B45 #45340B #1C450B
monochromatic
#09041A #09041A #170B45 #29137A #3A1CAF

Accessibility & contrast

On white

17.95
#170B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B45
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B45#FFFFFF#000000##FFFFFF
##170B451.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001544
Tritanopia (blue-blind)
#001B27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170b45;
/* rgb */ color: rgb(23, 11, 69);
/* oklch */ color: oklch(21.5% 0.101 283.4);
Tailwind
colors: {
  custom: {
    50: '#5b4b79',
    500: '#170b45',
    950: '#000000',
  },
}
SCSS
$custom: #170b45;
$custom-light: #5b4b79;
$custom-dark: #000000;
JSON
{
  "hex": "#170b45",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 69
  },
  "hsl": {
    "h": 252.414,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21508,
    "c": 0.10084,
    "h": 283.4
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#170B45
secondary
#6F812A
accent
#EF39C9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170B45

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

Preview Lab → · Contrast checker → · Palette generator →

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