#170B4C#170B4C

#170B4C is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.110 H 281.1°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#170B4C
RGBrgb(23, 11, 76)
HSLhsl(251, 75%, 17%)
HSVhsv(251, 86%, 30%)
CMYKcmyk(69.7%, 85.5%, 0%, 70.2%)
CIE-LABlab(8.51, 27.06, -37.57)
CIE-LCHlch(8.51, 46.31, 305.77°)
OKLaboklab(22.33% 0.0212 -0.1084)
OKLCHoklch(22.33% 0.11 281.1)
XYZxyz(1.7771, 0.9432, 6.9245)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B4C #404C0B
analogous
#0B204C #170B4C #380B4C
triadic
#170B4C #4C170B #0B4C17
tetradic
#170B4C #4C0B20 #404C0B #0B4C38
square
#170B4C #4C0B20 #404C0B #0B4C38
split-complementary
#170B4C #4C380B #204C0B
monochromatic
#08041B #08041B #170B4C #271381 #371AB7

Accessibility & contrast

On white

17.67
#170B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#170B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B4C
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B4C#FFFFFF#000000##FFFFFF
##170B4C1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4E
Deuteranopia (green-blind)
#00164B
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170b4c;
/* rgb */ color: rgb(23, 11, 76);
/* oklch */ color: oklch(22.3% 0.110 281.1);
Tailwind
colors: {
  custom: {
    50: '#5d4c7f',
    500: '#170b4c',
    950: '#000000',
  },
}
SCSS
$custom: #170b4c;
$custom-light: #5d4c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#170b4c",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 251.077,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22334,
    "c": 0.11049,
    "h": 281.1
  },
  "luminance": 0.00943
}

Semantic roles & 50–950 ramp

primary
#170B4C
secondary
#77882B
accent
#F136CF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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