#170335#170335

#170335 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.091 H 294.6°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#170335
RGBrgb(23, 3, 53)
HSLhsl(264, 89%, 11%)
HSVhsv(264, 94%, 21%)
CMYKcmyk(56.6%, 94.3%, 0%, 79.2%)
CIE-LABlab(4.56, 21.98, -27.61)
CIE-LCHlch(4.56, 35.29, 308.53°)
OKLaboklab(18.3% 0.0378 -0.0825)
OKLCHoklch(18.3% 0.091 294.6)
XYZxyz(1.0283, 0.5043, 3.4106)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170335 #213503
analogous
#030835 #170335 #300335
triadic
#170335 #351703 #033517
tetradic
#170335 #350308 #213503 #033530
square
#170335 #350308 #213503 #033530
split-complementary
#170335 #353003 #083503
monochromatic
#0D021D #0D021D #170335 #30066F #490AA9

Accessibility & contrast

On white

19.08
#170335 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170335 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170335
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170335#FFFFFF#000000##FFFFFF
##1703351.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001036
Deuteranopia (green-blind)
#000F34
Tritanopia (blue-blind)
#0E111C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170335;
/* rgb */ color: rgb(23, 3, 53);
/* oklch */ color: oklch(18.3% 0.091 294.6);
Tailwind
colors: {
  custom: {
    50: '#57476d',
    500: '#170335',
    950: '#000000',
  },
}
SCSS
$custom: #170335;
$custom-light: #57476d;
$custom-dark: #000000;
JSON
{
  "hex": "#170335",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 53
  },
  "hsl": {
    "h": 264,
    "s": 89.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18301,
    "c": 0.09077,
    "h": 294.6
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#170335
secondary
#53781C
accent
#FF29A9
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030007
muted
#78777A

Preview Lab

Preview with #170335

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

Preview Lab → · Contrast checker → · Palette generator →

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