#2E1561#2E1561

#2E1561 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.125 H 291.4°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#2E1561
RGBrgb(46, 21, 97)
HSLhsl(260, 64%, 23%)
HSVhsv(260, 78%, 38%)
CMYKcmyk(52.6%, 78.4%, 0%, 62%)
CIE-LABlab(15.38, 31.90, -40.44)
CIE-LCHlch(15.38, 51.50, 308.27°)
OKLaboklab(28.48% 0.0456 -0.1161)
OKLCHoklch(28.48% 0.125 291.4)
XYZxyz(3.5519, 1.9801, 11.5020)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1561 #486115
analogous
#152261 #2E1561 #541561
triadic
#2E1561 #612E15 #15612E
tetradic
#2E1561 #611522 #486115 #156154
square
#2E1561 #611522 #486115 #156154
split-complementary
#2E1561 #615415 #226115
monochromatic
#0C0519 #160A2F #2E1561 #462093 #5E2BC6

Accessibility & contrast

On white

15.04
#2E1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1561
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1561#FFFFFF#000000##FFFFFF
##2E15611.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#1D293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1561;
/* rgb */ color: rgb(46, 21, 97);
/* oklch */ color: oklch(28.5% 0.125 291.4);
Tailwind
colors: {
  custom: {
    50: '#6d558f',
    500: '#2e1561',
    950: '#000000',
  },
}
SCSS
$custom: #2e1561;
$custom-light: #6d558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1561",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 259.737,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28477,
    "c": 0.12468,
    "h": 291.4
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#2E1561
secondary
#79983A
accent
#E740B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E1561

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

Preview Lab → · Contrast checker → · Palette generator →

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