#2E1A7B#2E1A7B

#2E1A7B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.152 H 283.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2E1A7B
RGBrgb(46, 26, 123)
HSLhsl(252, 65%, 29%)
HSVhsv(252, 79%, 48%)
CMYKcmyk(62.6%, 78.9%, 0%, 51.8%)
CIE-LABlab(19.01, 37.31, -51.40)
CIE-LCHlch(19.01, 63.51, 305.98°)
OKLaboklab(31.84% 0.0342 -0.1482)
OKLCHoklch(31.84% 0.152 283)
XYZxyz(5.0702, 2.7493, 18.9986)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A7B #677B1A
analogous
#1A377B #2E1A7B #5F1A7B
triadic
#2E1A7B #7B2E1A #1A7B2E
tetradic
#2E1A7B #7B1A37 #677B1A #1A7B5F
square
#2E1A7B #7B1A37 #677B1A #1A7B5F
split-complementary
#2E1A7B #7B5F1A #377B1A
monochromatic
#090519 #1B0F48 #2E1A7B #4125AE #5A3AD5

Accessibility & contrast

On white

13.55
#2E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A7B
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A7B#FFFFFF#000000##FFFFFF
##2E1A7B1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1a7b;
/* rgb */ color: rgb(46, 26, 123);
/* oklch */ color: oklch(31.8% 0.152 283.0);
Tailwind
colors: {
  custom: {
    50: '#7159a2',
    500: '#2e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a7b;
$custom-light: #7159a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a7b",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 252.371,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.15207,
    "h": 283
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#2E1A7B
secondary
#99AF42
accent
#E840C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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