#170C48#170C48

#170C48 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.0% C 0.104 H 282.1°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#170C48
RGBrgb(23, 12, 72)
HSLhsl(251, 71%, 16%)
HSVhsv(251, 83%, 28%)
CMYKcmyk(68.1%, 83.3%, 0%, 71.8%)
CIE-LABlab(8.24, 25.08, -35.22)
CIE-LCHlch(8.24, 43.24, 305.45°)
OKLaboklab(22.01% 0.0217 -0.1016)
OKLCHoklch(22.01% 0.104 282.1)
XYZxyz(1.6542, 0.9129, 6.2187)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C48 #3D480C
analogous
#0C1F48 #170C48 #350C48
triadic
#170C48 #48170C #0C4817
tetradic
#170C48 #480C1F #3D480C #0C4835
square
#170C48 #480C1F #3D480C #0C4835
split-complementary
#170C48 #48350C #1F480C
monochromatic
#08041A #08041A #170C48 #28157C #391DB1

Accessibility & contrast

On white

17.76
#170C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C48
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C48#FFFFFF#000000##FFFFFF
##170C481.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001647
Tritanopia (blue-blind)
#001D29
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170c48;
/* rgb */ color: rgb(23, 12, 72);
/* oklch */ color: oklch(22.0% 0.104 282.1);
Tailwind
colors: {
  custom: {
    50: '#5c4c7c',
    500: '#170c48',
    950: '#000000',
  },
}
SCSS
$custom: #170c48;
$custom-light: #5c4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170c48",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 251,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.22006,
    "c": 0.10387,
    "h": 282.1
  },
  "luminance": 0.00913
}

Semantic roles & 50–950 ramp

primary
#170C48
secondary
#74842C
accent
#EE3ACD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170C48

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

Preview Lab → · Contrast checker → · Palette generator →

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