#23117D#23117D

#23117D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.165 H 277.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#23117D
RGBrgb(35, 17, 125)
HSLhsl(250, 76%, 28%)
HSVhsv(250, 86%, 49%)
CMYKcmyk(72%, 86.4%, 0%, 51%)
CIE-LABlab(16.69, 41.22, -56.54)
CIE-LCHlch(16.69, 69.97, 306.09°)
OKLaboklab(30.05% 0.0212 -0.1633)
OKLCHoklch(30.05% 0.165 277.4)
XYZxyz(4.5941, 2.2385, 19.5880)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23117D #6B7D11
analogous
#11357D #23117D #59117D
triadic
#23117D #7D2311 #117D23
tetradic
#23117D #7D1135 #6B7D11 #117D59
square
#23117D #7D1135 #6B7D11 #117D59
split-complementary
#23117D #7D5911 #357D11
monochromatic
#08041B #140A47 #23117D #3218B3 #4627E2

Accessibility & contrast

On white

14.50
#23117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#23117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23117D
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23117D#FFFFFF#000000##FFFFFF
##23117D1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #23117d;
/* rgb */ color: rgb(35, 17, 125);
/* oklch */ color: oklch(30.0% 0.165 277.4);
Tailwind
colors: {
  custom: {
    50: '#6e54a4',
    500: '#23117d',
    950: '#000000',
  },
}
SCSS
$custom: #23117d;
$custom-light: #6e54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#23117d",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 250,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30046,
    "c": 0.1647,
    "h": 277.4
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#23117D
secondary
#9EB337
accent
#F335D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23117D

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

Preview Lab → · Contrast checker → · Palette generator →

#23117D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva