#2E1A8B#2E1A8B

#2E1A8B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 279.9°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2E1A8B
RGBrgb(46, 26, 139)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(66.9%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.76, 42.32, -58.61)
CIE-LCHlch(20.76, 72.29, 305.83°)
OKLaboklab(33.59% 0.0295 -0.1692)
OKLCHoklch(33.59% 0.172 279.9)
XYZxyz(6.1548, 3.1832, 24.7112)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A8B #778B1A
analogous
#1A3F8B #2E1A8B #661A8B
triadic
#2E1A8B #8B2E1A #1A8B2E
tetradic
#2E1A8B #8B1A3F #778B1A #1A8B66
square
#2E1A8B #8B1A3F #778B1A #1A8B66
split-complementary
#2E1A8B #8B661A #3F8B1A
monochromatic
#0C0724 #1D1057 #2E1A8B #3F24BF #5E43DC

Accessibility & contrast

On white

12.83
#2E1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2E1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A8B
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A8B#FFFFFF#000000##FFFFFF
##2E1A8B1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1a8b;
/* rgb */ color: rgb(46, 26, 139);
/* oklch */ color: oklch(33.6% 0.172 279.9);
Tailwind
colors: {
  custom: {
    50: '#755aae',
    500: '#2e1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a8b;
$custom-light: #755aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a8b",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 250.619,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.17176,
    "h": 279.9
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#2E1A8B
secondary
#A8BD44
accent
#EB3CCC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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