#2E1B79#2E1B79

#2E1B79 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.148 H 283.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2E1B79
RGBrgb(46, 27, 121)
HSLhsl(252, 64%, 29%)
HSVhsv(252, 78%, 47%)
CMYKcmyk(62%, 77.7%, 0%, 52.5%)
CIE-LABlab(18.99, 36.13, -50.15)
CIE-LCHlch(18.99, 61.81, 305.77°)
OKLaboklab(31.76% 0.034 -0.1445)
OKLCHoklch(31.76% 0.148 283.2)
XYZxyz(4.9688, 2.7449, 18.3534)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B79 #66791B
analogous
#1B3779 #2E1B79 #5D1B79
triadic
#2E1B79 #792E1B #1B792E
tetradic
#2E1B79 #791B37 #66791B #1B795D
square
#2E1B79 #791B37 #66791B #1B795D
split-complementary
#2E1B79 #795D1B #37791B
monochromatic
#0A0619 #1B1047 #2E1B79 #4126AB #5A3BD3

Accessibility & contrast

On white

13.56
#2E1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B79
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B79#FFFFFF#000000##FFFFFF
##2E1B791.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1b79;
/* rgb */ color: rgb(46, 27, 121);
/* oklch */ color: oklch(31.8% 0.148 283.2);
Tailwind
colors: {
  custom: {
    50: '#715aa1',
    500: '#2e1b79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b79;
$custom-light: #715aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b79",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 252.128,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31763,
    "c": 0.14849,
    "h": 283.2
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#2E1B79
secondary
#98AD43
accent
#E741C5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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