#170B4F#170B4F

#170B4F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.115 H 280.2°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#170B4F
RGBrgb(23, 11, 79)
HSLhsl(251, 76%, 18%)
HSVhsv(251, 86%, 31%)
CMYKcmyk(70.9%, 86.1%, 0%, 69%)
CIE-LABlab(8.87, 28.10, -39.05)
CIE-LCHlch(8.87, 48.11, 305.74°)
OKLaboklab(22.7% 0.0203 -0.1127)
OKLCHoklch(22.7% 0.115 280.2)
XYZxyz(1.8839, 0.9859, 7.4866)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B4F #434F0B
analogous
#0B214F #170B4F #390B4F
triadic
#170B4F #4F170B #0B4F17
tetradic
#170B4F #4F0B21 #434F0B #0B4F39
square
#170B4F #4F0B21 #434F0B #0B4F39
split-complementary
#170B4F #4F390B #214F0B
monochromatic
#08041B #08041B #170B4F #271285 #361ABA

Accessibility & contrast

On white

17.54
#170B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#170B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B4F
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B4F#FFFFFF#000000##FFFFFF
##170B4F1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#001F2D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170b4f;
/* rgb */ color: rgb(23, 11, 79);
/* oklch */ color: oklch(22.7% 0.115 280.2);
Tailwind
colors: {
  custom: {
    50: '#5e4c81',
    500: '#170b4f',
    950: '#000000',
  },
}
SCSS
$custom: #170b4f;
$custom-light: #5e4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#170b4f",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 250.588,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22696,
    "c": 0.11454,
    "h": 280.2
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#170B4F
secondary
#7A8B2B
accent
#F236D1
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #170B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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