#170340#170340

#170340 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.7% C 0.104 H 288.2°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#170340
RGBrgb(23, 3, 64)
HSLhsl(260, 91%, 13%)
HSVhsv(260, 95%, 25%)
CMYKcmyk(64.1%, 95.3%, 0%, 74.9%)
CIE-LABlab(5.58, 26.91, -33.94)
CIE-LCHlch(5.58, 43.31, 308.41°)
OKLaboklab(19.66% 0.0326 -0.0991)
OKLCHoklch(19.66% 0.104 288.2)
XYZxyz(1.3111, 0.6174, 4.8996)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170340 #2C4003
analogous
#030D40 #170340 #350340
triadic
#170340 #401703 #034017
tetradic
#170340 #40030D #2C4003 #034035
square
#170340 #40030D #2C4003 #034035
split-complementary
#170340 #403503 #0D4003
monochromatic
#0B011D #0B011D #170340 #2C067A #4108B5

Accessibility & contrast

On white

18.69
#170340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170340
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170340#FFFFFF#000000##FFFFFF
##1703401.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#051522
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170340;
/* rgb */ color: rgb(23, 3, 64);
/* oklch */ color: oklch(19.7% 0.104 288.2);
Tailwind
colors: {
  custom: {
    50: '#5a4776',
    500: '#170340',
    950: '#000000',
  },
}
SCSS
$custom: #170340;
$custom-light: #5a4776;
$custom-dark: #000000;
JSON
{
  "hex": "#170340",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 259.672,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19662,
    "c": 0.10436,
    "h": 288.2
  },
  "luminance": 0.00617
}

Semantic roles & 50–950 ramp

primary
#170340
secondary
#61821D
accent
#FF29B9
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #170340

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

Preview Lab → · Contrast checker → · Palette generator →

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