#170F3F#170F3F

#170F3F is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.087 H 284.0°. Best body text is #FFFFFF at 17.85:1 contrast (WCAG AA passes).

Color values

HEX#170F3F
RGBrgb(23, 15, 63)
HSLhsl(250, 62%, 15%)
HSVhsv(250, 76%, 25%)
CMYKcmyk(63.5%, 76.2%, 0%, 75.3%)
CIE-LABlab(7.97, 19.85, -29.31)
CIE-LCHlch(7.97, 35.39, 304.11°)
OKLaboklab(21.52% 0.021 -0.0843)
OKLCHoklch(21.52% 0.087 284)
XYZxyz(1.4211, 0.8826, 4.7971)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F3F #373F0F
analogous
#0F1F3F #170F3F #2F0F3F
triadic
#170F3F #3F170F #0F3F17
tetradic
#170F3F #3F0F1F #373F0F #0F3F2F
square
#170F3F #3F0F1F #373F0F #0F3F2F
split-complementary
#170F3F #3F2F0F #1F3F0F
monochromatic
#090619 #090619 #170F3F #291B70 #3B27A2

Accessibility & contrast

On white

17.85
#170F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#170F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F3F
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F3F#FFFFFF#000000##FFFFFF
##170F3F1.0017.851.1817.85
#FFFFFF17.851.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#051B25
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170f3f;
/* rgb */ color: rgb(23, 15, 63);
/* oklch */ color: oklch(21.5% 0.087 284.0);
Tailwind
colors: {
  custom: {
    50: '#594e75',
    500: '#170f3f',
    950: '#000000',
  },
}
SCSS
$custom: #170f3f;
$custom-light: #594e75;
$custom-dark: #000000;
JSON
{
  "hex": "#170f3f",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 250,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21515,
    "c": 0.08683,
    "h": 284
  },
  "luminance": 0.00883
}

Semantic roles & 50–950 ramp

primary
#170F3F
secondary
#6D7930
accent
#E543CA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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