#23155D#23155D

#23155D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.120 H 283.7°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#23155D
RGBrgb(35, 21, 93)
HSLhsl(252, 63%, 22%)
HSVhsv(252, 77%, 36%)
CMYKcmyk(62.4%, 77.4%, 0%, 63.5%)
CIE-LABlab(13.73, 28.74, -40.52)
CIE-LCHlch(13.73, 49.68, 305.34°)
OKLaboklab(26.89% 0.0285 -0.1167)
OKLCHoklch(26.89% 0.12 283.7)
XYZxyz(2.9365, 1.6838, 10.5241)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23155D #4F5D15
analogous
#152B5D #23155D #47155D
triadic
#23155D #5D2315 #155D23
tetradic
#23155D #5D152B #4F5D15 #155D47
square
#23155D #5D152B #4F5D15 #155D47
split-complementary
#23155D #5D4715 #2B5D15
monochromatic
#090619 #100A2B #23155D #36208F #492CC1

Accessibility & contrast

On white

15.71
#23155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#23155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23155D
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23155D#FFFFFF#000000##FFFFFF
##23155D1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#032937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23155d;
/* rgb */ color: rgb(35, 21, 93);
/* oklch */ color: oklch(26.9% 0.120 283.7);
Tailwind
colors: {
  custom: {
    50: '#66548c',
    500: '#23155d',
    950: '#000000',
  },
}
SCSS
$custom: #23155d;
$custom-light: #66548c;
$custom-dark: #000000;
JSON
{
  "hex": "#23155d",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 251.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26889,
    "c": 0.12015,
    "h": 283.7
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23155D

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

Preview Lab → · Contrast checker → · Palette generator →

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