#170734#170734

#170734 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.082 H 293.3°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#170734
RGBrgb(23, 7, 52)
HSLhsl(261, 76%, 12%)
HSVhsv(261, 87%, 20%)
CMYKcmyk(55.8%, 86.5%, 0%, 79.6%)
CIE-LABlab(5.26, 19.70, -25.74)
CIE-LCHlch(5.26, 32.41, 307.43°)
OKLaboklab(18.94% 0.0326 -0.0757)
OKLCHoklch(18.94% 0.082 293.3)
XYZxyz(1.0490, 0.5820, 3.3052)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170734 #243407
analogous
#070E34 #170734 #2E0734
triadic
#170734 #341707 #073417
tetradic
#170734 #34070E #243407 #07342E
square
#170734 #34070E #243407 #07342E
split-complementary
#170734 #342E07 #0E3407
monochromatic
#0C041B #0C041B #170734 #2F0E6A #4716A0

Accessibility & contrast

On white

18.81
#170734 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170734
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170734#FFFFFF#000000##FFFFFF
##1707341.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001235
Deuteranopia (green-blind)
#001133
Tritanopia (blue-blind)
#0E131C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #170734;
/* rgb */ color: rgb(23, 7, 52);
/* oklch */ color: oklch(18.9% 0.082 293.3);
Tailwind
colors: {
  custom: {
    50: '#57496c',
    500: '#170734',
    950: '#000000',
  },
}
SCSS
$custom: #170734;
$custom-light: #57496c;
$custom-dark: #000000;
JSON
{
  "hex": "#170734",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 52
  },
  "hsl": {
    "h": 261.333,
    "s": 76.271,
    "l": 11.569
  },
  "oklch": {
    "l": 0.18944,
    "c": 0.08247,
    "h": 293.3
  },
  "luminance": 0.00582
}

Semantic roles & 50–950 ramp

primary
#170734
secondary
#577423
accent
#F335AF
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170734

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

Preview Lab → · Contrast checker → · Palette generator →

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