#2E1C81#2E1C81

#2E1C81 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.158 H 281.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2E1C81
RGBrgb(46, 28, 129)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(64.3%, 78.3%, 0%, 49.4%)
CIE-LABlab(20.03, 38.14, -53.53)
CIE-LCHlch(20.03, 65.73, 305.47°)
OKLaboklab(32.75% 0.0311 -0.1544)
OKLCHoklch(32.75% 0.158 281.4)
XYZxyz(5.5032, 2.9959, 21.0529)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C81 #6F811C
analogous
#1C3C81 #2E1C81 #601C81
triadic
#2E1C81 #812E1C #1C812E
tetradic
#2E1C81 #811C3C #6F811C #1C8160
square
#2E1C81 #811C3C #6F811C #1C8160
split-complementary
#2E1C81 #81601C #3C811C
monochromatic
#0A061C #1C114F #2E1C81 #4027B3 #5C42D6

Accessibility & contrast

On white

13.13
#2E1C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C81
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C81#FFFFFF#000000##FFFFFF
##2E1C811.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1c81;
/* rgb */ color: rgb(46, 28, 129);
/* oklch */ color: oklch(32.7% 0.158 281.4);
Tailwind
colors: {
  custom: {
    50: '#735ba7',
    500: '#2e1c81',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c81;
$custom-light: #735ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c81",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 250.693,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32746,
    "c": 0.15755,
    "h": 281.4
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#2E1C81
secondary
#A0B444
accent
#E740CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1C81

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

Preview Lab → · Contrast checker → · Palette generator →

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