#170B41#170B41

#170B41 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.095 H 284.9°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#170B41
RGBrgb(23, 11, 65)
HSLhsl(253, 71%, 15%)
HSVhsv(253, 83%, 25%)
CMYKcmyk(64.6%, 83.1%, 0%, 74.5%)
CIE-LABlab(7.25, 23.11, -31.91)
CIE-LCHlch(7.25, 39.40, 305.92°)
OKLaboklab(21.05% 0.0246 -0.092)
OKLCHoklch(21.05% 0.095 284.9)
XYZxyz(1.4269, 0.8031, 5.0798)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B41 #35410B
analogous
#0B1A41 #170B41 #320B41
triadic
#170B41 #41170B #0B4117
tetradic
#170B41 #410B1A #35410B #0B4132
square
#170B41 #410B1A #35410B #0B4132
split-complementary
#170B41 #41320B #1A410B
monochromatic
#09041A #09041A #170B41 #2A1475 #3C1DAA

Accessibility & contrast

On white

18.09
#170B41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B41
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B41#FFFFFF#000000##FFFFFF
##170B411.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#031A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170b41;
/* rgb */ color: rgb(23, 11, 65);
/* oklch */ color: oklch(21.1% 0.095 284.9);
Tailwind
colors: {
  custom: {
    50: '#5a4b76',
    500: '#170b41',
    950: '#000000',
  },
}
SCSS
$custom: #170b41;
$custom-light: #5a4b76;
$custom-dark: #000000;
JSON
{
  "hex": "#170b41",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 65
  },
  "hsl": {
    "h": 253.333,
    "s": 71.053,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2105,
    "c": 0.09521,
    "h": 284.9
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#170B41
secondary
#6B7E2A
accent
#EE3AC6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170B41

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

Preview Lab → · Contrast checker → · Palette generator →

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