#170F3D#170F3D

#170F3D is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.3% C 0.084 H 284.7°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#170F3D
RGBrgb(23, 15, 61)
HSLhsl(250, 61%, 15%)
HSVhsv(250, 75%, 24%)
CMYKcmyk(62.3%, 75.4%, 0%, 76.1%)
CIE-LABlab(7.77, 19.09, -28.20)
CIE-LCHlch(7.77, 34.06, 304.10°)
OKLaboklab(21.31% 0.0213 -0.081)
OKLCHoklch(21.31% 0.084 284.7)
XYZxyz(1.3662, 0.8607, 4.5081)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F3D #353D0F
analogous
#0F1E3D #170F3D #2E0F3D
triadic
#170F3D #3D170F #0F3D17
tetradic
#170F3D #3D0F1E #353D0F #0F3D2E
square
#170F3D #3D0F1E #353D0F #0F3D2E
split-complementary
#170F3D #3D2E0F #1E3D0F
monochromatic
#090619 #090619 #170F3D #2A1B6E #3C279F

Accessibility & contrast

On white

17.92
#170F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F3D
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F3D#FFFFFF#000000##FFFFFF
##170F3D1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183E
Deuteranopia (green-blind)
#00163C
Tritanopia (blue-blind)
#071B24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170f3d;
/* rgb */ color: rgb(23, 15, 61);
/* oklch */ color: oklch(21.3% 0.084 284.7);
Tailwind
colors: {
  custom: {
    50: '#594d73',
    500: '#170f3d',
    950: '#000000',
  },
}
SCSS
$custom: #170f3d;
$custom-light: #594d73;
$custom-dark: #000000;
JSON
{
  "hex": "#170f3d",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 250.435,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21308,
    "c": 0.08377,
    "h": 284.7
  },
  "luminance": 0.00861
}

Semantic roles & 50–950 ramp

primary
#170F3D
secondary
#6B7730
accent
#E444C8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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