#170740#170740

#170740 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.099 H 286.8°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#170740
RGBrgb(23, 7, 64)
HSLhsl(257, 80%, 14%)
HSVhsv(257, 89%, 25%)
CMYKcmyk(64.1%, 89.1%, 0%, 74.9%)
CIE-LABlab(6.36, 24.84, -32.65)
CIE-LCHlch(6.36, 41.03, 307.26°)
OKLaboklab(20.32% 0.0286 -0.0946)
OKLCHoklch(20.32% 0.099 286.8)
XYZxyz(1.3545, 0.7042, 4.9140)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170740 #304007
analogous
#071440 #170740 #340740
triadic
#170740 #401707 #074017
tetradic
#170740 #400714 #304007 #074034
square
#170740 #400714 #304007 #074034
split-complementary
#170740 #403407 #144007
monochromatic
#0A031C #0A031C #170740 #2B0D77 #3F13AE

Accessibility & contrast

On white

18.41
#170740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170740
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170740#FFFFFF#000000##FFFFFF
##1707401.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#051823
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170740;
/* rgb */ color: rgb(23, 7, 64);
/* oklch */ color: oklch(20.3% 0.099 286.8);
Tailwind
colors: {
  custom: {
    50: '#5a4975',
    500: '#170740',
    950: '#000000',
  },
}
SCSS
$custom: #170740;
$custom-light: #5a4975;
$custom-dark: #000000;
JSON
{
  "hex": "#170740",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 256.842,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20318,
    "c": 0.09886,
    "h": 286.8
  },
  "luminance": 0.00704
}

Semantic roles & 50–950 ramp

primary
#170740
secondary
#657F24
accent
#F731BF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170740

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

Preview Lab → · Contrast checker → · Palette generator →

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