#23115F#23115F

#23115F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.127 H 284.2°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#23115F
RGBrgb(35, 17, 95)
HSLhsl(254, 70%, 22%)
HSVhsv(254, 82%, 37%)
CMYKcmyk(63.2%, 82.1%, 0%, 62.7%)
CIE-LABlab(13.13, 31.70, -42.84)
CIE-LCHlch(13.13, 53.30, 306.50°)
OKLaboklab(26.53% 0.0312 -0.1235)
OKLCHoklch(26.53% 0.127 284.2)
XYZxyz(2.9585, 1.5843, 10.9741)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23115F #4D5F11
analogous
#11265F #23115F #4A115F
triadic
#23115F #5F2311 #115F23
tetradic
#23115F #5F1126 #4D5F11 #115F4A
square
#23115F #5F1126 #4D5F11 #115F4A
split-complementary
#23115F #5F4A11 #265F11
monochromatic
#0A051A #10082B #23115F #361A93 #4924C7

Accessibility & contrast

On white

15.95
#23115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#23115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23115F
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23115F#FFFFFF#000000##FFFFFF
##23115F1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002461
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#012837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #23115f;
/* rgb */ color: rgb(35, 17, 95);
/* oklch */ color: oklch(26.5% 0.127 284.2);
Tailwind
colors: {
  custom: {
    50: '#67528d',
    500: '#23115f',
    950: '#000000',
  },
}
SCSS
$custom: #23115f;
$custom-light: #67528d;
$custom-dark: #000000;
JSON
{
  "hex": "#23115f",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 253.846,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26533,
    "c": 0.12735,
    "h": 284.2
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#23115F
secondary
#819834
accent
#EC3BC4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #23115F

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

Preview Lab → · Contrast checker → · Palette generator →

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