#170B4A#170B4A

#170B4A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.108 H 281.7°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#170B4A
RGBrgb(23, 11, 74)
HSLhsl(251, 74%, 17%)
HSVhsv(251, 85%, 29%)
CMYKcmyk(68.9%, 85.1%, 0%, 71%)
CIE-LABlab(8.27, 26.37, -36.58)
CIE-LCHlch(8.27, 45.09, 305.79°)
OKLaboklab(22.1% 0.0219 -0.1055)
OKLCHoklch(22.1% 0.108 281.7)
XYZxyz(1.7087, 0.9158, 6.5640)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B4A #3E4A0B
analogous
#0B1F4A #170B4A #370B4A
triadic
#170B4A #4A170B #0B4A17
tetradic
#170B4A #4A0B1F #3E4A0B #0B4A37
square
#170B4A #4A0B1F #3E4A0B #0B4A37
split-complementary
#170B4A #4A370B #1F4A0B
monochromatic
#08041B #08041B #170B4A #28137F #381BB5

Accessibility & contrast

On white

17.75
#170B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B4A
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B4A#FFFFFF#000000##FFFFFF
##170B4A1.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#001D2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170b4a;
/* rgb */ color: rgb(23, 11, 74);
/* oklch */ color: oklch(22.1% 0.108 281.7);
Tailwind
colors: {
  custom: {
    50: '#5c4c7d',
    500: '#170b4a',
    950: '#000000',
  },
}
SCSS
$custom: #170b4a;
$custom-light: #5c4c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#170b4a",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 251.429,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22095,
    "c": 0.10776,
    "h": 281.7
  },
  "luminance": 0.00916
}

Semantic roles & 50–950 ramp

primary
#170B4A
secondary
#75862B
accent
#F137CD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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