#2E1C84#2E1C84

#2E1C84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.161 H 280.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2E1C84
RGBrgb(46, 28, 132)
HSLhsl(250, 65%, 31%)
HSVhsv(250, 79%, 52%)
CMYKcmyk(65.2%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.35, 39.10, -54.90)
CIE-LCHlch(20.35, 67.40, 305.46°)
OKLaboklab(33.07% 0.0303 -0.1584)
OKLCHoklch(33.07% 0.161 280.8)
XYZxyz(5.7055, 3.0769, 22.1186)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C84 #72841C
analogous
#1C3E84 #2E1C84 #621C84
triadic
#2E1C84 #842E1C #1C842E
tetradic
#2E1C84 #841C3E #72841C #1C8462
square
#2E1C84 #841C3E #72841C #1C8462
split-complementary
#2E1C84 #84621C #3E841C
monochromatic
#0B071F #1C1152 #2E1C84 #4027B6 #5D43D7

Accessibility & contrast

On white

13.00
#2E1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C84
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C84#FFFFFF#000000##FFFFFF
##2E1C841.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1c84;
/* rgb */ color: rgb(46, 28, 132);
/* oklch */ color: oklch(33.1% 0.161 280.8);
Tailwind
colors: {
  custom: {
    50: '#735ba9',
    500: '#2e1c84',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c84;
$custom-light: #735ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c84",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 250.385,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.16129,
    "h": 280.8
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#2E1C84
secondary
#A3B745
accent
#E840CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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