#23155C#23155C

#23155C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.119 H 284.0°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#23155C
RGBrgb(35, 21, 92)
HSLhsl(252, 63%, 22%)
HSVhsv(252, 77%, 36%)
CMYKcmyk(62%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.63, 28.40, -40.02)
CIE-LCHlch(13.63, 49.07, 305.36°)
OKLaboklab(26.78% 0.0287 -0.1153)
OKLCHoklch(26.78% 0.119 284)
XYZxyz(2.8925, 1.6662, 10.2923)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23155C #4E5C15
analogous
#152B5C #23155C #47155C
triadic
#23155C #5C2315 #155C23
tetradic
#23155C #5C152B #4E5C15 #155C47
square
#23155C #5C152B #4E5C15 #155C47
split-complementary
#23155C #5C4715 #2B5C15
monochromatic
#090619 #100A2A #23155C #36208E #492CC0

Accessibility & contrast

On white

15.75
#23155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23155C
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23155C#FFFFFF#000000##FFFFFF
##23155C1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#052837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23155c;
/* rgb */ color: rgb(35, 21, 92);
/* oklch */ color: oklch(26.8% 0.119 284.0);
Tailwind
colors: {
  custom: {
    50: '#66548b',
    500: '#23155c',
    950: '#000000',
  },
}
SCSS
$custom: #23155c;
$custom-light: #66548b;
$custom-dark: #000000;
JSON
{
  "hex": "#23155c",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 251.831,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26784,
    "c": 0.11879,
    "h": 284
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#23155C
secondary
#829339
accent
#E642C6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23155C

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

Preview Lab → · Contrast checker → · Palette generator →

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