#2E1A88#2E1A88

#2E1A88 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.168 H 280.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2E1A88
RGBrgb(46, 26, 136)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 53%)
CMYKcmyk(66.2%, 80.9%, 0%, 46.7%)
CIE-LABlab(20.43, 41.39, -57.29)
CIE-LCHlch(20.43, 70.67, 305.85°)
OKLaboklab(33.25% 0.0304 -0.1654)
OKLCHoklch(33.25% 0.168 280.4)
XYZxyz(5.9386, 3.0967, 23.5726)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A88 #74881A
analogous
#1A3D88 #2E1A88 #651A88
triadic
#2E1A88 #882E1A #1A882E
tetradic
#2E1A88 #881A3D #74881A #1A8865
square
#2E1A88 #881A3D #74881A #1A8865
split-complementary
#2E1A88 #88651A #3D881A
monochromatic
#0B0621 #1D1055 #2E1A88 #3F24BB #5D42DB

Accessibility & contrast

On white

12.97
#2E1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2E1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A88
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A88#FFFFFF#000000##FFFFFF
##2E1A881.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1a88;
/* rgb */ color: rgb(46, 26, 136);
/* oklch */ color: oklch(33.3% 0.168 280.4);
Tailwind
colors: {
  custom: {
    50: '#745aac',
    500: '#2e1a88',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a88;
$custom-light: #745aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a88",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 250.909,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33253,
    "c": 0.16813,
    "h": 280.4
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#2E1A88
secondary
#A5BB43
accent
#EB3DCB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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