#2E1565#2E1565

#2E1565 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.130 H 290.0°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#2E1565
RGBrgb(46, 21, 101)
HSLhsl(259, 66%, 24%)
HSVhsv(259, 79%, 40%)
CMYKcmyk(54.5%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.78, 33.12, -42.43)
CIE-LCHlch(15.78, 53.83, 307.98°)
OKLaboklab(28.88% 0.0445 -0.1219)
OKLCHoklch(28.88% 0.13 290)
XYZxyz(3.7432, 2.0566, 12.5091)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1565 #4C6515
analogous
#152465 #2E1565 #561565
triadic
#2E1565 #652E15 #15652E
tetradic
#2E1565 #651524 #4C6515 #156556
square
#2E1565 #651524 #4C6515 #156556
split-complementary
#2E1565 #655615 #246515
monochromatic
#0C0519 #170A32 #2E1565 #452098 #5C2ACA

Accessibility & contrast

On white

14.88
#2E1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1565
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1565#FFFFFF#000000##FFFFFF
##2E15651.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1565;
/* rgb */ color: rgb(46, 21, 101);
/* oklch */ color: oklch(28.9% 0.130 290.0);
Tailwind
colors: {
  custom: {
    50: '#6e5592',
    500: '#2e1565',
    950: '#000000',
  },
}
SCSS
$custom: #2e1565;
$custom-light: #6e5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1565",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 258.75,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2888,
    "c": 0.12976,
    "h": 290
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#2E1565
secondary
#7D9C3A
accent
#E93FB4
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1565

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

Preview Lab → · Contrast checker → · Palette generator →

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