#170C30#170C30

#170C30 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.4% C 0.068 H 293.0°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#170C30
RGBrgb(23, 12, 48)
HSLhsl(258, 60%, 12%)
HSVhsv(258, 75%, 19%)
CMYKcmyk(52.1%, 75%, 0%, 81.2%)
CIE-LABlab(5.95, 15.62, -21.67)
CIE-LCHlch(5.95, 26.71, 305.78°)
OKLaboklab(19.45% 0.0267 -0.0629)
OKLCHoklch(19.45% 0.068 293)
XYZxyz(1.0182, 0.6585, 2.8692)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C30 #25300C
analogous
#0C1330 #170C30 #290C30
triadic
#170C30 #30170C #0C3017
tetradic
#170C30 #300C13 #25300C #0C3029
square
#170C30 #300C13 #25300C #0C3029
split-complementary
#170C30 #30290C #13300C
monochromatic
#0C0618 #0C0618 #170C30 #2E1861 #462492

Accessibility & contrast

On white

18.55
#170C30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C30
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C30#FFFFFF#000000##FFFFFF
##170C301.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170c30;
/* rgb */ color: rgb(23, 12, 48);
/* oklch */ color: oklch(19.4% 0.068 293.0);
Tailwind
colors: {
  custom: {
    50: '#564b68',
    500: '#170c30',
    950: '#000000',
  },
}
SCSS
$custom: #170c30;
$custom-light: #564b68;
$custom-dark: #000000;
JSON
{
  "hex": "#170c30",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 48
  },
  "hsl": {
    "h": 258.333,
    "s": 60,
    "l": 11.765
  },
  "oklch": {
    "l": 0.19449,
    "c": 0.06832,
    "h": 293
  },
  "luminance": 0.00659
}

Semantic roles & 50–950 ramp

primary
#170C30
secondary
#586C2C
accent
#E345B3
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170C30

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

Preview Lab → · Contrast checker → · Palette generator →

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