#170F33#170F33

#170F33 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.3% C 0.068 H 289.1°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#170F33
RGBrgb(23, 15, 51)
HSLhsl(253, 55%, 13%)
HSVhsv(253, 71%, 20%)
CMYKcmyk(54.9%, 70.6%, 0%, 80%)
CIE-LABlab(6.89, 15.16, -22.38)
CIE-LCHlch(6.89, 27.03, 304.12°)
OKLaboklab(20.33% 0.0223 -0.0642)
OKLCHoklch(20.33% 0.068 289.1)
XYZxyz(1.1215, 0.7628, 3.2195)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F33 #2B330F
analogous
#0F1933 #170F33 #290F33
triadic
#170F33 #33170F #0F3317
tetradic
#170F33 #330F19 #2B330F #0F3329
square
#170F33 #330F19 #2B330F #0F3329
split-complementary
#170F33 #33290F #19330F
monochromatic
#0B0718 #0B0718 #170F33 #2C1D62 #422B92

Accessibility & contrast

On white

18.22
#170F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F33
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F33#FFFFFF#000000##FFFFFF
##170F331.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#001432
Tritanopia (blue-blind)
#0E171F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170f33;
/* rgb */ color: rgb(23, 15, 51);
/* oklch */ color: oklch(20.3% 0.068 289.1);
Tailwind
colors: {
  custom: {
    50: '#574d6b',
    500: '#170f33',
    950: '#000000',
  },
}
SCSS
$custom: #170f33;
$custom-light: #574d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#170f33",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 51
  },
  "hsl": {
    "h": 253.333,
    "s": 54.545,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20331,
    "c": 0.06794,
    "h": 289.1
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#170F33
secondary
#606D31
accent
#DE4ABD
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170F33

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

Preview Lab → · Contrast checker → · Palette generator →

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