#170E3F#170E3F

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

Color values

HEX#170E3F
RGBrgb(23, 14, 63)
HSLhsl(251, 64%, 15%)
HSVhsv(251, 78%, 25%)
CMYKcmyk(63.5%, 77.8%, 0%, 75.3%)
CIE-LABlab(7.72, 20.52, -29.71)
CIE-LCHlch(7.72, 36.11, 304.63°)
OKLaboklab(21.33% 0.0221 -0.0855)
OKLCHoklch(21.33% 0.088 284.5)
XYZxyz(1.4073, 0.8550, 4.7925)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170E3F #363F0E
analogous
#0E1E3F #170E3F #2F0E3F
triadic
#170E3F #3F170E #0E3F17
tetradic
#170E3F #3F0E1E #363F0E #0E3F2F
square
#170E3F #3F0E1E #363F0E #0E3F2F
split-complementary
#170E3F #3F2F0E #1E3F0E
monochromatic
#090619 #090619 #170E3F #291971 #3C24A3

Accessibility & contrast

On white

17.93
#170E3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170E3F
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170E3F#FFFFFF#000000##FFFFFF
##170E3F1.0017.931.1717.93
#FFFFFF17.931.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #170e3f;
/* rgb */ color: rgb(23, 14, 63);
/* oklch */ color: oklch(21.3% 0.088 284.5);
Tailwind
colors: {
  custom: {
    50: '#594d75',
    500: '#170e3f',
    950: '#000000',
  },
}
SCSS
$custom: #170e3f;
$custom-light: #594d75;
$custom-dark: #000000;
JSON
{
  "hex": "#170e3f",
  "rgb": {
    "r": 23,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 251.02,
    "s": 63.636,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21334,
    "c": 0.08827,
    "h": 284.5
  },
  "luminance": 0.00855
}

Semantic roles & 50–950 ramp

primary
#170E3F
secondary
#6C7A2F
accent
#E741C8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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