#2E1D82#2E1D82

#2E1D82 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.158 H 281.0°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#2E1D82
RGBrgb(46, 29, 130)
HSLhsl(250, 64%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(64.6%, 77.7%, 0%, 49%)
CIE-LABlab(20.33, 37.92, -53.68)
CIE-LCHlch(20.33, 65.72, 305.24°)
OKLaboklab(32.99% 0.0302 -0.1549)
OKLCHoklch(32.99% 0.158 281)
XYZxyz(5.5941, 3.0709, 21.4127)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D82 #71821D
analogous
#1D3E82 #2E1D82 #601D82
triadic
#2E1D82 #822E1D #1D822E
tetradic
#2E1D82 #821D3E #71821D #1D8260
square
#2E1D82 #821D3E #71821D #1D8260
split-complementary
#2E1D82 #82601D #3E821D
monochromatic
#0B071E #1C1250 #2E1D82 #4028B4 #5D44D5

Accessibility & contrast

On white

13.01
#2E1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2E1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D82
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D82#FFFFFF#000000##FFFFFF
##2E1D821.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1d82;
/* rgb */ color: rgb(46, 29, 130);
/* oklch */ color: oklch(33.0% 0.158 281.0);
Tailwind
colors: {
  custom: {
    50: '#735ca7',
    500: '#2e1d82',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d82;
$custom-light: #735ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d82",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 250.099,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32987,
    "c": 0.15778,
    "h": 281
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#2E1D82
secondary
#A2B546
accent
#E741CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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