#170B3E#170B3E

#170B3E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.091 H 286.2°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#170B3E
RGBrgb(23, 11, 62)
HSLhsl(254, 70%, 14%)
HSVhsv(254, 82%, 24%)
CMYKcmyk(62.9%, 82.3%, 0%, 75.7%)
CIE-LABlab(6.95, 21.94, -30.26)
CIE-LCHlch(6.95, 37.38, 305.95°)
OKLaboklab(20.72% 0.0254 -0.0873)
OKLCHoklch(20.72% 0.091 286.2)
XYZxyz(1.3423, 0.7692, 4.6342)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B3E #323E0B
analogous
#0B193E #170B3E #310B3E
triadic
#170B3E #3E170B #0B3E17
tetradic
#170B3E #3E0B19 #323E0B #0B3E31
square
#170B3E #3E0B19 #323E0B #0B3E31
split-complementary
#170B3E #3E310B #193E0B
monochromatic
#0A051A #0A051A #170B3E #2A1472 #3E1DA6

Accessibility & contrast

On white

18.20
#170B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B3E
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B3E#FFFFFF#000000##FFFFFF
##170B3E1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00143D
Tritanopia (blue-blind)
#061923
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170b3e;
/* rgb */ color: rgb(23, 11, 62);
/* oklch */ color: oklch(20.7% 0.091 286.2);
Tailwind
colors: {
  custom: {
    50: '#594b74',
    500: '#170b3e',
    950: '#000000',
  },
}
SCSS
$custom: #170b3e;
$custom-light: #594b74;
$custom-dark: #000000;
JSON
{
  "hex": "#170b3e",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 62
  },
  "hsl": {
    "h": 254.118,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20715,
    "c": 0.09092,
    "h": 286.2
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#170B3E
secondary
#687B2A
accent
#ED3BC3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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