#170234#170234

#170234 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.091 H 295.8°. Best body text is #FFFFFF at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#170234
RGBrgb(23, 2, 52)
HSLhsl(265, 93%, 11%)
HSVhsv(265, 96%, 20%)
CMYKcmyk(55.8%, 96.2%, 0%, 79.6%)
CIE-LABlab(4.28, 21.97, -27.31)
CIE-LCHlch(4.28, 35.05, 308.81°)
OKLaboklab(17.98% 0.0398 -0.0823)
OKLCHoklch(17.98% 0.091 295.8)
XYZxyz(0.9947, 0.4735, 3.2871)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170234 #1F3402
analogous
#020634 #170234 #300234
triadic
#170234 #341702 #023417
tetradic
#170234 #340206 #1F3402 #023430
square
#170234 #340206 #1F3402 #023430
split-complementary
#170234 #343002 #063402
monochromatic
#0D011D #0D011D #170234 #31046F #4B07AA

Accessibility & contrast

On white

19.18
#170234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#170234 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170234
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170234#FFFFFF#000000##FFFFFF
##1702341.0019.181.0919.18
#FFFFFF19.181.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F35
Deuteranopia (green-blind)
#000E33
Tritanopia (blue-blind)
#0E0F1B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #170234;
/* rgb */ color: rgb(23, 2, 52);
/* oklch */ color: oklch(18.0% 0.091 295.8);
Tailwind
colors: {
  custom: {
    50: '#57466c',
    500: '#170234',
    950: '#000000',
  },
}
SCSS
$custom: #170234;
$custom-light: #57466c;
$custom-dark: #000000;
JSON
{
  "hex": "#170234",
  "rgb": {
    "r": 23,
    "g": 2,
    "b": 52
  },
  "hsl": {
    "h": 265.2,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17982,
    "c": 0.09145,
    "h": 295.8
  },
  "luminance": 0.00474
}

Semantic roles & 50–950 ramp

primary
#170234
secondary
#50781A
accent
#FF29A5
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030007
muted
#78777A

Preview Lab

Preview with #170234

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

Preview Lab → · Contrast checker → · Palette generator →

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