#170B40#170B40

#170B40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.094 H 285.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#170B40
RGBrgb(23, 11, 64)
HSLhsl(254, 71%, 15%)
HSVhsv(254, 83%, 25%)
CMYKcmyk(64.1%, 82.8%, 0%, 74.9%)
CIE-LABlab(7.15, 22.73, -31.36)
CIE-LCHlch(7.15, 38.73, 305.93°)
OKLaboklab(20.94% 0.0248 -0.0904)
OKLCHoklch(20.94% 0.094 285.4)
XYZxyz(1.3982, 0.7916, 4.9286)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B40 #34400B
analogous
#0B1A40 #170B40 #320B40
triadic
#170B40 #40170B #0B4017
tetradic
#170B40 #400B1A #34400B #0B4032
square
#170B40 #400B1A #34400B #0B4032
split-complementary
#170B40 #40320B #1A400B
monochromatic
#09041A #09041A #170B40 #2A1474 #3D1DA8

Accessibility & contrast

On white

18.13
#170B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B40
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B40#FFFFFF#000000##FFFFFF
##170B401.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#041924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170b40;
/* rgb */ color: rgb(23, 11, 64);
/* oklch */ color: oklch(20.9% 0.094 285.4);
Tailwind
colors: {
  custom: {
    50: '#5a4b75',
    500: '#170b40',
    950: '#000000',
  },
}
SCSS
$custom: #170b40;
$custom-light: #5a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#170b40",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 253.585,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20938,
    "c": 0.09379,
    "h": 285.4
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#170B40
secondary
#6A7D2A
accent
#ED3AC5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170B40

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

Preview Lab → · Contrast checker → · Palette generator →

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