#2E1564#2E1564

#2E1564 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.129 H 290.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#2E1564
RGBrgb(46, 21, 100)
HSLhsl(259, 65%, 24%)
HSVhsv(259, 79%, 39%)
CMYKcmyk(54%, 79%, 0%, 60.8%)
CIE-LABlab(15.68, 32.82, -41.94)
CIE-LCHlch(15.68, 53.25, 308.05°)
OKLaboklab(28.78% 0.0447 -0.1205)
OKLCHoklch(28.78% 0.129 290.4)
XYZxyz(3.6945, 2.0371, 12.2527)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1564 #4B6415
analogous
#152364 #2E1564 #551564
triadic
#2E1564 #642E15 #15642E
tetradic
#2E1564 #641523 #4B6415 #156455
square
#2E1564 #641523 #4B6415 #156455
split-complementary
#2E1564 #645515 #236415
monochromatic
#0C0519 #170A31 #2E1564 #452097 #5D2AC9

Accessibility & contrast

On white

14.92
#2E1564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1564
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1564#FFFFFF#000000##FFFFFF
##2E15641.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#1B2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1564;
/* rgb */ color: rgb(46, 21, 100);
/* oklch */ color: oklch(28.8% 0.129 290.4);
Tailwind
colors: {
  custom: {
    50: '#6d5591',
    500: '#2e1564',
    950: '#000000',
  },
}
SCSS
$custom: #2e1564;
$custom-light: #6d5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1564",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 258.987,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28779,
    "c": 0.1285,
    "h": 290.4
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#2E1564
secondary
#7C9B3A
accent
#E840B3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1564

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

Preview Lab → · Contrast checker → · Palette generator →

#2E1564 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva