#2E1A92#2E1A92

#2E1A92 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.180 H 278.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1A92
RGBrgb(46, 26, 146)
HSLhsl(250, 70%, 34%)
HSVhsv(250, 82%, 57%)
CMYKcmyk(68.5%, 82.2%, 0%, 42.7%)
CIE-LABlab(21.56, 44.48, -61.65)
CIE-LCHlch(21.56, 76.02, 305.81°)
OKLaboklab(34.37% 0.0273 -0.1781)
OKLCHoklch(34.37% 0.18 278.7)
XYZxyz(6.6827, 3.3944, 27.4916)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A92 #7E921A
analogous
#1A4292 #2E1A92 #6A1A92
triadic
#2E1A92 #922E1A #1A922E
tetradic
#2E1A92 #921A42 #7E921A #1A926A
square
#2E1A92 #921A42 #7E921A #1A926A
split-complementary
#2E1A92 #926A1A #42921A
monochromatic
#0D072A #1E115E #2E1A92 #3E23C6 #6148DE

Accessibility & contrast

On white

12.51
#2E1A92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1A92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A92
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A92#FFFFFF#000000##FFFFFF
##2E1A921.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003895
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1a92;
/* rgb */ color: rgb(46, 26, 146);
/* oklch */ color: oklch(34.4% 0.180 278.7);
Tailwind
colors: {
  custom: {
    50: '#765bb3',
    500: '#2e1a92',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a92;
$custom-light: #765bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a92",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 146
  },
  "hsl": {
    "h": 250,
    "s": 69.767,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.18014,
    "h": 278.7
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#2E1A92
secondary
#ACC048
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1A92

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

Preview Lab → · Contrast checker → · Palette generator →

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