#23175B#23175B

#23175B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.115 H 283.7°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#23175B
RGBrgb(35, 23, 91)
HSLhsl(251, 60%, 22%)
HSVhsv(251, 75%, 36%)
CMYKcmyk(61.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(13.97, 26.81, -38.79)
CIE-LCHlch(13.97, 47.15, 304.66°)
OKLaboklab(27% 0.0271 -0.1116)
OKLCHoklch(27% 0.115 283.7)
XYZxyz(2.8873, 1.7253, 10.0764)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23175B #4F5B17
analogous
#172D5B #23175B #45175B
triadic
#23175B #5B2317 #175B23
tetradic
#23175B #5B172D #4F5B17 #175B45
square
#23175B #5B172D #4F5B17 #175B45
split-complementary
#23175B #5B4517 #2D5B17
monochromatic
#090618 #100B2A #23175B #36238C #4930BD

Accessibility & contrast

On white

15.61
#23175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#23175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23175B
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23175B#FFFFFF#000000##FFFFFF
##23175B1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#062937
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #23175b;
/* rgb */ color: rgb(35, 23, 91);
/* oklch */ color: oklch(27.0% 0.115 283.7);
Tailwind
colors: {
  custom: {
    50: '#65558a',
    500: '#23175b',
    950: '#000000',
  },
}
SCSS
$custom: #23175b;
$custom-light: #65558a;
$custom-dark: #000000;
JSON
{
  "hex": "#23175b",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 250.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26999,
    "c": 0.11489,
    "h": 283.7
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#23175B
secondary
#83923C
accent
#E345C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23175B

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

Preview Lab → · Contrast checker → · Palette generator →

#23175B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva