#170F37#170F37

#170F37 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.074 H 287.2°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#170F37
RGBrgb(23, 15, 55)
HSLhsl(252, 57%, 14%)
HSVhsv(252, 73%, 22%)
CMYKcmyk(58.2%, 72.7%, 0%, 78.4%)
CIE-LABlab(7.22, 16.77, -24.77)
CIE-LCHlch(7.22, 29.91, 304.10°)
OKLaboklab(20.71% 0.022 -0.071)
OKLCHoklch(20.71% 0.074 287.2)
XYZxyz(1.2136, 0.7996, 3.7041)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F37 #2F370F
analogous
#0F1B37 #170F37 #2B0F37
triadic
#170F37 #37170F #0F3717
tetradic
#170F37 #370F1B #2F370F #0F372B
square
#170F37 #370F1B #2F370F #0F372B
split-complementary
#170F37 #372B0F #1B370F
monochromatic
#0A0718 #0A0718 #170F37 #2B1C67 #3F2997

Accessibility & contrast

On white

18.10
#170F37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170F37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F37
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F37#FFFFFF#000000##FFFFFF
##170F371.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001738
Deuteranopia (green-blind)
#001536
Tritanopia (blue-blind)
#0C1821
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170f37;
/* rgb */ color: rgb(23, 15, 55);
/* oklch */ color: oklch(20.7% 0.074 287.2);
Tailwind
colors: {
  custom: {
    50: '#584d6e',
    500: '#170f37',
    950: '#000000',
  },
}
SCSS
$custom: #170f37;
$custom-light: #584d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#170f37",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 55
  },
  "hsl": {
    "h": 252,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2071,
    "c": 0.07438,
    "h": 287.2
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#170F37
secondary
#647131
accent
#E047C2
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170F37

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

Preview Lab → · Contrast checker → · Palette generator →

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