#170231#170231

#170231 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.6% C 0.088 H 298.0°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#170231
RGBrgb(23, 2, 49)
HSLhsl(267, 92%, 10%)
HSVhsv(267, 96%, 19%)
CMYKcmyk(53.1%, 95.9%, 0%, 80.8%)
CIE-LABlab(4.04, 20.53, -25.47)
CIE-LCHlch(4.04, 32.71, 308.88°)
OKLaboklab(17.62% 0.0413 -0.0776)
OKLCHoklch(17.62% 0.088 298)
XYZxyz(0.9293, 0.4473, 2.9425)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170231 #1C3102
analogous
#020431 #170231 #2F0231
triadic
#170231 #311702 #023117
tetradic
#170231 #310204 #1C3102 #02312F
square
#170231 #310204 #1C3102 #02312F
split-complementary
#170231 #312F02 #043102
monochromatic
#0E011D #0E011D #170231 #33046C #4E07A7

Accessibility & contrast

On white

19.28
#170231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170231
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170231#FFFFFF#000000##FFFFFF
##1702311.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#100E19
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #170231;
/* rgb */ color: rgb(23, 2, 49);
/* oklch */ color: oklch(17.6% 0.088 298.0);
Tailwind
colors: {
  custom: {
    50: '#564769',
    500: '#170231',
    950: '#000000',
  },
}
SCSS
$custom: #170231;
$custom-light: #564769;
$custom-dark: #000000;
JSON
{
  "hex": "#170231",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 266.809,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17622,
    "c": 0.08787,
    "h": 298
  },
  "luminance": 0.00447
}

Semantic roles & 50–950 ramp

primary
#170231
secondary
#4C7519
accent
#FF299F
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #170231

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

Preview Lab → · Contrast checker → · Palette generator →

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