#170B3F#170B3F

#170B3F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.092 H 285.8°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#170B3F
RGBrgb(23, 11, 63)
HSLhsl(254, 70%, 15%)
HSVhsv(254, 83%, 25%)
CMYKcmyk(63.5%, 82.5%, 0%, 75.3%)
CIE-LABlab(7.05, 22.34, -30.82)
CIE-LCHlch(7.05, 38.06, 305.94°)
OKLaboklab(20.83% 0.0251 -0.0889)
OKLCHoklch(20.83% 0.092 285.8)
XYZxyz(1.3700, 0.7803, 4.7801)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B3F #333F0B
analogous
#0B193F #170B3F #310B3F
triadic
#170B3F #3F170B #0B3F17
tetradic
#170B3F #3F0B19 #333F0B #0B3F31
square
#170B3F #3F0B19 #333F0B #0B3F31
split-complementary
#170B3F #3F310B #193F0B
monochromatic
#0A051A #0A051A #170B3F #2A1473 #3D1DA7

Accessibility & contrast

On white

18.17
#170B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170B3F
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B3F#FFFFFF#000000##FFFFFF
##170B3F1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#051924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170b3f;
/* rgb */ color: rgb(23, 11, 63);
/* oklch */ color: oklch(20.8% 0.092 285.8);
Tailwind
colors: {
  custom: {
    50: '#5a4b75',
    500: '#170b3f',
    950: '#000000',
  },
}
SCSS
$custom: #170b3f;
$custom-light: #5a4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#170b3f",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 63
  },
  "hsl": {
    "h": 253.846,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20826,
    "c": 0.09236,
    "h": 285.8
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#170B3F
secondary
#697C2A
accent
#ED3BC4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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