#2E1A7D#2E1A7D

#2E1A7D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.155 H 282.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7D
RGBrgb(46, 26, 125)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 79%, 49%)
CMYKcmyk(63.2%, 79.2%, 0%, 51%)
CIE-LABlab(19.22, 37.94, -52.32)
CIE-LCHlch(19.22, 64.63, 305.95°)
OKLaboklab(32.05% 0.0336 -0.1509)
OKLCHoklch(32.05% 0.155 282.6)
XYZxyz(5.1966, 2.7999, 19.6647)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7D #697D1A
analogous
#1A387D #2E1A7D #601A7D
triadic
#2E1A7D #7D2E1A #1A7D2E
tetradic
#2E1A7D #7D1A38 #697D1A #1A7D60
square
#2E1A7D #7D1A38 #697D1A #1A7D60
split-complementary
#2E1A7D #7D601A #387D1A
monochromatic
#090519 #1B0F4A #2E1A7D #4125B0 #5A3BD6

Accessibility & contrast

On white

13.46
#2E1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7D#FFFFFF#000000##FFFFFF
##2E1A7D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1a7d;
/* rgb */ color: rgb(46, 26, 125);
/* oklch */ color: oklch(32.1% 0.155 282.6);
Tailwind
colors: {
  custom: {
    50: '#725aa4',
    500: '#2e1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7d;
$custom-light: #725aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7d",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 252.121,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32054,
    "c": 0.15457,
    "h": 282.6
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#2E1A7D
secondary
#9BB142
accent
#E93FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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