#23115B#23115B

#23115B is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.1% C 0.122 H 285.4°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#23115B
RGBrgb(35, 17, 91)
HSLhsl(255, 69%, 21%)
HSVhsv(255, 81%, 36%)
CMYKcmyk(61.5%, 81.3%, 0%, 64.3%)
CIE-LABlab(12.69, 30.40, -40.89)
CIE-LCHlch(12.69, 50.95, 306.63°)
OKLaboklab(26.09% 0.0324 -0.1178)
OKLCHoklch(26.09% 0.122 285.4)
XYZxyz(2.7813, 1.5134, 10.0411)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23115B #495B11
analogous
#11245B #23115B #48115B
triadic
#23115B #5B2311 #115B23
tetradic
#23115B #5B1124 #495B11 #115B48
square
#23115B #5B1124 #495B11 #115B48
split-complementary
#23115B #5B4811 #245B11
monochromatic
#0A051A #0F0727 #23115B #371B8F #4B24C2

Accessibility & contrast

On white

16.12
#23115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#23115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23115B
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23115B#FFFFFF#000000##FFFFFF
##23115B1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#062635
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #23115b;
/* rgb */ color: rgb(35, 17, 91);
/* oklch */ color: oklch(26.1% 0.122 285.4);
Tailwind
colors: {
  custom: {
    50: '#66518a',
    500: '#23115b',
    950: '#000000',
  },
}
SCSS
$custom: #23115b;
$custom-light: #66518a;
$custom-dark: #000000;
JSON
{
  "hex": "#23115b",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 254.595,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26092,
    "c": 0.12214,
    "h": 285.4
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#23115B
secondary
#7D9434
accent
#EB3CC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23115B

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

Preview Lab → · Contrast checker → · Palette generator →

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