#23174F#23174F

#23174F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.098 H 287.3°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#23174F
RGBrgb(35, 23, 79)
HSLhsl(253, 55%, 20%)
HSVhsv(253, 71%, 31%)
CMYKcmyk(55.7%, 70.9%, 0%, 69%)
CIE-LABlab(12.83, 22.65, -32.52)
CIE-LCHlch(12.83, 39.63, 304.86°)
OKLaboklab(25.82% 0.0291 -0.0932)
OKLCHoklch(25.82% 0.098 287.3)
XYZxyz(2.4104, 1.5345, 7.5648)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23174F #434F17
analogous
#17274F #23174F #3F174F
triadic
#23174F #4F2317 #174F23
tetradic
#23174F #4F1727 #434F17 #174F3F
square
#23174F #4F1727 #434F17 #174F3F
split-complementary
#23174F #4F3F17 #274F17
monochromatic
#0A0718 #0E0920 #23174F #38257E #4D33AE

Accessibility & contrast

On white

16.07
#23174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#23174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23174F
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23174F#FFFFFF#000000##FFFFFF
##23174F1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#132530
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23174f;
/* rgb */ color: rgb(35, 23, 79);
/* oklch */ color: oklch(25.8% 0.098 287.3);
Tailwind
colors: {
  custom: {
    50: '#635581',
    500: '#23174f',
    950: '#000000',
  },
}
SCSS
$custom: #23174f;
$custom-light: #635581;
$custom-dark: #000000;
JSON
{
  "hex": "#23174f",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 252.857,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.25817,
    "c": 0.09767,
    "h": 287.3
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#23174F
secondary
#76863C
accent
#DE4ABE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #23174F

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

Preview Lab → · Contrast checker → · Palette generator →

#23174F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva