#23155B#23155B

#23155B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.117 H 284.3°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#23155B
RGBrgb(35, 21, 91)
HSLhsl(252, 63%, 22%)
HSVhsv(252, 77%, 36%)
CMYKcmyk(61.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(13.52, 28.06, -39.52)
CIE-LCHlch(13.52, 48.47, 305.37°)
OKLaboklab(26.68% 0.029 -0.1138)
OKLCHoklch(26.68% 0.117 284.3)
XYZxyz(2.8491, 1.6488, 10.0636)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23155B #4D5B15
analogous
#152A5B #23155B #46155B
triadic
#23155B #5B2315 #155B23
tetradic
#23155B #5B152A #4D5B15 #155B46
square
#23155B #5B152A #4D5B15 #155B46
split-complementary
#23155B #5B4615 #2A5B15
monochromatic
#0A0619 #100A29 #23155B #36208D #492CBE

Accessibility & contrast

On white

15.79
#23155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#23155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23155B
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23155B#FFFFFF#000000##FFFFFF
##23155B1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#062836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23155b;
/* rgb */ color: rgb(35, 21, 91);
/* oklch */ color: oklch(26.7% 0.117 284.3);
Tailwind
colors: {
  custom: {
    50: '#65548a',
    500: '#23155b',
    950: '#000000',
  },
}
SCSS
$custom: #23155b;
$custom-light: #65548a;
$custom-dark: #000000;
JSON
{
  "hex": "#23155b",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 252,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26679,
    "c": 0.11742,
    "h": 284.3
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#23155B
secondary
#819239
accent
#E642C5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23155B

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

Preview Lab → · Contrast checker → · Palette generator →

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