#23155E#23155E

#23155E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 283.4°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#23155E
RGBrgb(35, 21, 94)
HSLhsl(252, 63%, 23%)
HSVhsv(252, 78%, 37%)
CMYKcmyk(62.8%, 77.7%, 0%, 63.1%)
CIE-LABlab(13.84, 29.08, -41.02)
CIE-LCHlch(13.84, 50.28, 305.33°)
OKLaboklab(27% 0.0283 -0.1182)
OKLCHoklch(27% 0.122 283.4)
XYZxyz(2.9811, 1.7016, 10.7589)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23155E #505E15
analogous
#152B5E #23155E #48155E
triadic
#23155E #5E2315 #155E23
tetradic
#23155E #5E152B #505E15 #155E48
square
#23155E #5E152B #505E15 #155E48
split-complementary
#23155E #5E4815 #2B5E15
monochromatic
#090619 #100A2C #23155E #362090 #482BC2

Accessibility & contrast

On white

15.67
#23155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23155E
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23155E#FFFFFF#000000##FFFFFF
##23155E1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#022938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #23155e;
/* rgb */ color: rgb(35, 21, 94);
/* oklch */ color: oklch(27.0% 0.121 283.4);
Tailwind
colors: {
  custom: {
    50: '#66548c',
    500: '#23155e',
    950: '#000000',
  },
}
SCSS
$custom: #23155e;
$custom-light: #66548c;
$custom-dark: #000000;
JSON
{
  "hex": "#23155e",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 251.507,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26995,
    "c": 0.1215,
    "h": 283.4
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#23155E
secondary
#849539
accent
#E741C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #23155E

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

Preview Lab → · Contrast checker → · Palette generator →

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