#23174E#23174E

#23174E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.096 H 287.7°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#23174E
RGBrgb(35, 23, 78)
HSLhsl(253, 54%, 20%)
HSVhsv(253, 71%, 31%)
CMYKcmyk(55.1%, 70.5%, 0%, 69.4%)
CIE-LABlab(12.74, 22.30, -31.98)
CIE-LCHlch(12.74, 38.99, 304.89°)
OKLaboklab(25.72% 0.0292 -0.0917)
OKLCHoklch(25.72% 0.096 287.7)
XYZxyz(2.3743, 1.5201, 7.3745)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23174E #424E17
analogous
#17274E #23174E #3F174E
triadic
#23174E #4E2317 #174E23
tetradic
#23174E #4E1727 #424E17 #174E3F
square
#23174E #4E1727 #424E17 #174E3F
split-complementary
#23174E #4E3F17 #274E17
monochromatic
#0B0718 #0E091F #23174E #38257D #4D33AD

Accessibility & contrast

On white

16.10
#23174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#23174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23174E
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23174E#FFFFFF#000000##FFFFFF
##23174E1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#142430
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23174e;
/* rgb */ color: rgb(35, 23, 78);
/* oklch */ color: oklch(25.7% 0.096 287.7);
Tailwind
colors: {
  custom: {
    50: '#635480',
    500: '#23174e',
    950: '#000000',
  },
}
SCSS
$custom: #23174e;
$custom-light: #635480;
$custom-dark: #000000;
JSON
{
  "hex": "#23174e",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 253.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25723,
    "c": 0.0962,
    "h": 287.7
  },
  "luminance": 0.0152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23174E

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

Preview Lab → · Contrast checker → · Palette generator →

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