#170B3D#170B3D

#170B3D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.089 H 286.6°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#170B3D
RGBrgb(23, 11, 61)
HSLhsl(254, 69%, 14%)
HSVhsv(254, 82%, 24%)
CMYKcmyk(62.3%, 82%, 0%, 76.1%)
CIE-LABlab(6.85, 21.54, -29.70)
CIE-LCHlch(6.85, 36.69, 305.95°)
OKLaboklab(20.61% 0.0256 -0.0857)
OKLCHoklch(20.61% 0.089 286.6)
XYZxyz(1.3151, 0.7584, 4.4911)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B3D #313D0B
analogous
#0B183D #170B3D #300B3D
triadic
#170B3D #3D170B #0B3D17
tetradic
#170B3D #3D0B18 #313D0B #0B3D30
square
#170B3D #3D0B18 #313D0B #0B3D30
split-complementary
#170B3D #3D300B #183D0B
monochromatic
#0A051A #0A051A #170B3D #2B1471 #3E1EA5

Accessibility & contrast

On white

18.24
#170B3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170B3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B3D
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B3D#FFFFFF#000000##FFFFFF
##170B3D1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163E
Deuteranopia (green-blind)
#00143C
Tritanopia (blue-blind)
#071823
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170b3d;
/* rgb */ color: rgb(23, 11, 61);
/* oklch */ color: oklch(20.6% 0.089 286.6);
Tailwind
colors: {
  custom: {
    50: '#594b73',
    500: '#170b3d',
    950: '#000000',
  },
}
SCSS
$custom: #170b3d;
$custom-light: #594b73;
$custom-dark: #000000;
JSON
{
  "hex": "#170b3d",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 61
  },
  "hsl": {
    "h": 254.4,
    "s": 69.444,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20605,
    "c": 0.08947,
    "h": 286.6
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#170B3D
secondary
#677A2A
accent
#EC3CC2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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