#23115C#23115C

#23115C is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.123 H 285.1°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#23115C
RGBrgb(35, 17, 92)
HSLhsl(254, 69%, 21%)
HSVhsv(254, 82%, 36%)
CMYKcmyk(62%, 81.5%, 0%, 63.9%)
CIE-LABlab(12.80, 30.73, -41.38)
CIE-LCHlch(12.80, 51.54, 306.60°)
OKLaboklab(26.2% 0.0321 -0.1192)
OKLCHoklch(26.2% 0.123 285.1)
XYZxyz(2.8248, 1.5308, 10.2698)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23115C #4A5C11
analogous
#11255C #23115C #49115C
triadic
#23115C #5C2311 #115C23
tetradic
#23115C #5C1125 #4A5C11 #115C49
square
#23115C #5C1125 #4A5C11 #115C49
split-complementary
#23115C #5C4911 #255C11
monochromatic
#0A051A #0F0728 #23115C #371B90 #4A24C3

Accessibility & contrast

On white

16.08
#23115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#23115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23115C
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23115C#FFFFFF#000000##FFFFFF
##23115C1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#052636
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23115c;
/* rgb */ color: rgb(35, 17, 92);
/* oklch */ color: oklch(26.2% 0.123 285.1);
Tailwind
colors: {
  custom: {
    50: '#66518b',
    500: '#23115c',
    950: '#000000',
  },
}
SCSS
$custom: #23115c;
$custom-light: #66518b;
$custom-dark: #000000;
JSON
{
  "hex": "#23115c",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 254.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26201,
    "c": 0.12345,
    "h": 285.1
  },
  "luminance": 0.01531
}

Semantic roles & 50–950 ramp

primary
#23115C
secondary
#7E9534
accent
#EC3CC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23115C

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

Preview Lab → · Contrast checker → · Palette generator →

#23115C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva