#23115E#23115E

#23115E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.126 H 284.5°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#23115E
RGBrgb(35, 17, 94)
HSLhsl(254, 69%, 22%)
HSVhsv(254, 82%, 37%)
CMYKcmyk(62.8%, 81.9%, 0%, 63.1%)
CIE-LABlab(13.02, 31.38, -42.36)
CIE-LCHlch(13.02, 52.72, 306.53°)
OKLaboklab(26.42% 0.0315 -0.122)
OKLCHoklch(26.42% 0.126 284.5)
XYZxyz(2.9133, 1.5662, 10.7363)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23115E #4C5E11
analogous
#11265E #23115E #4A115E
triadic
#23115E #5E2311 #115E23
tetradic
#23115E #5E1126 #4C5E11 #115E4A
square
#23115E #5E1126 #4C5E11 #115E4A
split-complementary
#23115E #5E4A11 #265E11
monochromatic
#0A051A #10082A #23115E #361A92 #4A24C6

Accessibility & contrast

On white

15.99
#23115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23115E
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23115E#FFFFFF#000000##FFFFFF
##23115E1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#022737
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23115e;
/* rgb */ color: rgb(35, 17, 94);
/* oklch */ color: oklch(26.4% 0.126 284.5);
Tailwind
colors: {
  custom: {
    50: '#67528d',
    500: '#23115e',
    950: '#000000',
  },
}
SCSS
$custom: #23115e;
$custom-light: #67528d;
$custom-dark: #000000;
JSON
{
  "hex": "#23115e",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 254.026,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26422,
    "c": 0.12605,
    "h": 284.5
  },
  "luminance": 0.01566
}

Semantic roles & 50–950 ramp

primary
#23115E
secondary
#809734
accent
#EC3CC3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #23115E

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

Preview Lab → · Contrast checker → · Palette generator →

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