#170C4B#170C4B

#170C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.108 H 281.1°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#170C4B
RGBrgb(23, 12, 75)
HSLhsl(250, 72%, 17%)
HSVhsv(250, 84%, 29%)
CMYKcmyk(69.3%, 84%, 0%, 70.6%)
CIE-LABlab(8.59, 26.13, -36.74)
CIE-LCHlch(8.59, 45.09, 305.42°)
OKLaboklab(22.36% 0.0208 -0.106)
OKLCHoklch(22.36% 0.108 281.1)
XYZxyz(1.7544, 0.9530, 6.7467)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C4B #404B0C
analogous
#0C214B #170C4B #370C4B
triadic
#170C4B #4B170C #0C4B17
tetradic
#170C4B #4B0C21 #404B0C #0C4B37
square
#170C4B #4B0C21 #404B0C #0C4B37
split-complementary
#170C4B #4B370C #214B0C
monochromatic
#08041A #08041A #170C4B #271480 #371DB5

Accessibility & contrast

On white

17.64
#170C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#170C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C4B
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C4B#FFFFFF#000000##FFFFFF
##170C4B1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00164A
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #170c4b;
/* rgb */ color: rgb(23, 12, 75);
/* oklch */ color: oklch(22.4% 0.108 281.1);
Tailwind
colors: {
  custom: {
    50: '#5d4c7e',
    500: '#170c4b',
    950: '#000000',
  },
}
SCSS
$custom: #170c4b;
$custom-light: #5d4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#170c4b",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 250.476,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22357,
    "c": 0.10803,
    "h": 281.1
  },
  "luminance": 0.00953
}

Semantic roles & 50–950 ramp

primary
#170C4B
secondary
#77872C
accent
#EF39CF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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