#2E1A78#2E1A78

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

Color values

HEX#2E1A78
RGBrgb(46, 26, 120)
HSLhsl(253, 64%, 29%)
HSVhsv(253, 78%, 47%)
CMYKcmyk(61.7%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.69, 36.36, -50.00)
CIE-LCHlch(18.69, 61.82, 306.02°)
OKLaboklab(31.52% 0.035 -0.1441)
OKLCHoklch(31.52% 0.148 283.7)
XYZxyz(4.8852, 2.6754, 18.0246)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A78 #64781A
analogous
#1A3578 #2E1A78 #5D1A78
triadic
#2E1A78 #782E1A #1A782E
tetradic
#2E1A78 #781A35 #64781A #1A785D
square
#2E1A78 #781A35 #64781A #1A785D
split-complementary
#2E1A78 #785D1A #35781A
monochromatic
#0A0519 #1B0F46 #2E1A78 #4125AA #5A38D4

Accessibility & contrast

On white

13.68
#2E1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1A78
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A78#FFFFFF#000000##FFFFFF
##2E1A781.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1a78;
/* rgb */ color: rgb(46, 26, 120);
/* oklch */ color: oklch(31.5% 0.148 283.7);
Tailwind
colors: {
  custom: {
    50: '#7159a0',
    500: '#2e1a78',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a78;
$custom-light: #7159a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a78",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 252.766,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31522,
    "c": 0.14829,
    "h": 283.7
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#2E1A78
secondary
#96AC41
accent
#E740C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2E1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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