#2E1B78#2E1B78

#2E1B78 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.147 H 283.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1B78
RGBrgb(46, 27, 120)
HSLhsl(252, 63%, 29%)
HSVhsv(252, 78%, 47%)
CMYKcmyk(61.7%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.89, 35.81, -49.68)
CIE-LCHlch(18.89, 61.24, 305.78°)
OKLaboklab(31.66% 0.0343 -0.1432)
OKLCHoklch(31.66% 0.147 283.5)
XYZxyz(4.9078, 2.7205, 18.0321)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B78 #65781B
analogous
#1B3778 #2E1B78 #5D1B78
triadic
#2E1B78 #782E1B #1B782E
tetradic
#2E1B78 #781B37 #65781B #1B785D
square
#2E1B78 #781B37 #65781B #1B785D
split-complementary
#2E1B78 #785D1B #37781B
monochromatic
#0A0619 #1B1046 #2E1B78 #4126AA #5A3BD3

Accessibility & contrast

On white

13.60
#2E1B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B78
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B78#FFFFFF#000000##FFFFFF
##2E1B781.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1b78;
/* rgb */ color: rgb(46, 27, 120);
/* oklch */ color: oklch(31.7% 0.147 283.5);
Tailwind
colors: {
  custom: {
    50: '#715aa0',
    500: '#2e1b78',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b78;
$custom-light: #715aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b78",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 252.258,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31659,
    "c": 0.14721,
    "h": 283.5
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#2E1B78
secondary
#97AC43
accent
#E641C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1B78

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

Preview Lab → · Contrast checker → · Palette generator →

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