#170331#170331

#170331 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.086 H 297.5°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#170331
RGBrgb(23, 3, 49)
HSLhsl(266, 88%, 10%)
HSVhsv(266, 94%, 19%)
CMYKcmyk(53.1%, 93.9%, 0%, 80.8%)
CIE-LABlab(4.24, 20.10, -25.15)
CIE-LCHlch(4.24, 32.20, 308.63°)
OKLaboklab(17.83% 0.0396 -0.0761)
OKLCHoklch(17.83% 0.086 297.5)
XYZxyz(0.9401, 0.4690, 2.9461)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170331 #1D3103
analogous
#030631 #170331 #2E0331
triadic
#170331 #311703 #033117
tetradic
#170331 #310306 #1D3103 #03312E
square
#170331 #310306 #1D3103 #03312E
split-complementary
#170331 #312E03 #063103
monochromatic
#0E021D #0E021D #170331 #32076B #4D0AA4

Accessibility & contrast

On white

19.20
#170331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#170331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170331
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170331#FFFFFF#000000##FFFFFF
##1703311.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#100F19
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #170331;
/* rgb */ color: rgb(23, 3, 49);
/* oklch */ color: oklch(17.8% 0.086 297.5);
Tailwind
colors: {
  custom: {
    50: '#564769',
    500: '#170331',
    950: '#000000',
  },
}
SCSS
$custom: #170331;
$custom-light: #564769;
$custom-dark: #000000;
JSON
{
  "hex": "#170331",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 266.087,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17831,
    "c": 0.08581,
    "h": 297.5
  },
  "luminance": 0.00469
}

Semantic roles & 50–950 ramp

primary
#170331
secondary
#4E741B
accent
#FF29A2
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #170331

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

Preview Lab → · Contrast checker → · Palette generator →

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