#170948#170948

#170948 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.107 H 282.9°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#170948
RGBrgb(23, 9, 72)
HSLhsl(253, 78%, 16%)
HSVhsv(253, 88%, 28%)
CMYKcmyk(68.1%, 87.5%, 0%, 71.8%)
CIE-LABlab(7.64, 26.81, -36.22)
CIE-LCHlch(7.64, 45.06, 306.50°)
OKLaboklab(21.58% 0.024 -0.1045)
OKLCHoklch(21.58% 0.107 282.9)
XYZxyz(1.6204, 0.8453, 6.2074)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170948 #3A4809
analogous
#091A48 #170948 #360948
triadic
#170948 #481709 #094817
tetradic
#170948 #48091A #3A4809 #094836
square
#170948 #48091A #3A4809 #094836
split-complementary
#170948 #483609 #1A4809
monochromatic
#09031B #09031B #170948 #28107E #3A17B5

Accessibility & contrast

On white

17.96
#170948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170948
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170948#FFFFFF#000000##FFFFFF
##1709481.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001C28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170948;
/* rgb */ color: rgb(23, 9, 72);
/* oklch */ color: oklch(21.6% 0.107 282.9);
Tailwind
colors: {
  custom: {
    50: '#5c4a7c',
    500: '#170948',
    950: '#000000',
  },
}
SCSS
$custom: #170948;
$custom-light: #5c4a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170948",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 253.333,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21577,
    "c": 0.1072,
    "h": 282.9
  },
  "luminance": 0.00845
}

Semantic roles & 50–950 ramp

primary
#170948
secondary
#718527
accent
#F434C9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170948

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

Preview Lab → · Contrast checker → · Palette generator →

#170948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva