#170F38#170F38

#170F38 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.076 H 286.8°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#170F38
RGBrgb(23, 15, 56)
HSLhsl(252, 58%, 14%)
HSVhsv(252, 73%, 22%)
CMYKcmyk(58.9%, 73.2%, 0%, 78%)
CIE-LABlab(7.31, 17.16, -25.35)
CIE-LCHlch(7.31, 30.61, 304.10°)
OKLaboklab(20.81% 0.0219 -0.0727)
OKLCHoklch(20.81% 0.076 286.8)
XYZxyz(1.2378, 0.8093, 3.8316)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F38 #30380F
analogous
#0F1C38 #170F38 #2C0F38
triadic
#170F38 #38170F #0F3817
tetradic
#170F38 #380F1C #30380F #0F382C
square
#170F38 #380F1C #30380F #0F382C
split-complementary
#170F38 #382C0F #1C380F
monochromatic
#0A0618 #0A0618 #170F38 #2B1C68 #3F2999

Accessibility & contrast

On white

18.08
#170F38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F38
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F38#FFFFFF#000000##FFFFFF
##170F381.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#001537
Tritanopia (blue-blind)
#0B1921
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170f38;
/* rgb */ color: rgb(23, 15, 56);
/* oklch */ color: oklch(20.8% 0.076 286.8);
Tailwind
colors: {
  custom: {
    50: '#584d6f',
    500: '#170f38',
    950: '#000000',
  },
}
SCSS
$custom: #170f38;
$custom-light: #584d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#170f38",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 56
  },
  "hsl": {
    "h": 251.707,
    "s": 57.746,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20807,
    "c": 0.07597,
    "h": 286.8
  },
  "luminance": 0.00809
}

Semantic roles & 50–950 ramp

primary
#170F38
secondary
#657230
accent
#E147C3
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170F38

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

Preview Lab → · Contrast checker → · Palette generator →

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