#170B30#170B30

#170B30 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.070 H 293.7°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#170B30
RGBrgb(23, 11, 48)
HSLhsl(259, 63%, 12%)
HSVhsv(259, 77%, 19%)
CMYKcmyk(52.1%, 77.1%, 0%, 81.2%)
CIE-LABlab(5.74, 16.11, -22.01)
CIE-LCHlch(5.74, 27.28, 306.20°)
OKLaboklab(19.26% 0.0281 -0.0641)
OKLCHoklch(19.26% 0.07 293.7)
XYZxyz(1.0064, 0.6349, 2.8653)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B30 #24300B
analogous
#0B1230 #170B30 #2A0B30
triadic
#170B30 #30170B #0B3017
tetradic
#170B30 #300B12 #24300B #0B302A
square
#170B30 #300B12 #24300B #0B302A
split-complementary
#170B30 #302A0B #12300B
monochromatic
#0C0619 #0C0619 #170B30 #2F1662 #472294

Accessibility & contrast

On white

18.63
#170B30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170B30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B30
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B30#FFFFFF#000000##FFFFFF
##170B301.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001331
Deuteranopia (green-blind)
#00122F
Tritanopia (blue-blind)
#10141C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170b30;
/* rgb */ color: rgb(23, 11, 48);
/* oklch */ color: oklch(19.3% 0.070 293.7);
Tailwind
colors: {
  custom: {
    50: '#564b68',
    500: '#170b30',
    950: '#000000',
  },
}
SCSS
$custom: #170b30;
$custom-light: #564b68;
$custom-dark: #000000;
JSON
{
  "hex": "#170b30",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 48
  },
  "hsl": {
    "h": 259.459,
    "s": 62.712,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19258,
    "c": 0.07003,
    "h": 293.7
  },
  "luminance": 0.00635
}

Semantic roles & 50–950 ramp

primary
#170B30
secondary
#576D2A
accent
#E642B1
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170B30

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

Preview Lab → · Contrast checker → · Palette generator →

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