#170746#170746

#170746 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.107 H 284.2°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#170746
RGBrgb(23, 7, 70)
HSLhsl(255, 82%, 15%)
HSVhsv(255, 90%, 27%)
CMYKcmyk(67.1%, 90%, 0%, 72.5%)
CIE-LABlab(7.01, 27.18, -35.85)
CIE-LCHlch(7.01, 44.99, 307.18°)
OKLaboklab(21.05% 0.0263 -0.1035)
OKLCHoklch(21.05% 0.107 284.2)
XYZxyz(1.5345, 0.7762, 5.8621)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170746 #364607
analogous
#071746 #170746 #360746
triadic
#170746 #461707 #074617
tetradic
#170746 #460717 #364607 #074636
square
#170746 #460717 #364607 #074636
split-complementary
#170746 #463607 #174607
monochromatic
#09031C #09031C #170746 #290D7E #3C12B5

Accessibility & contrast

On white

18.18
#170746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170746
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170746#FFFFFF#000000##FFFFFF
##1707461.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001345
Tritanopia (blue-blind)
#001A27
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170746;
/* rgb */ color: rgb(23, 7, 70);
/* oklch */ color: oklch(21.0% 0.107 284.2);
Tailwind
colors: {
  custom: {
    50: '#5c497a',
    500: '#170746',
    950: '#000000',
  },
}
SCSS
$custom: #170746;
$custom-light: #5c497a;
$custom-dark: #000000;
JSON
{
  "hex": "#170746",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 255.238,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21045,
    "c": 0.10682,
    "h": 284.2
  },
  "luminance": 0.00776
}

Semantic roles & 50–950 ramp

primary
#170746
secondary
#6C8524
accent
#F830C5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170746

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

Preview Lab → · Contrast checker → · Palette generator →

#170746 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva