#2E1A8A#2E1A8A

#2E1A8A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.171 H 280.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2E1A8A
RGBrgb(46, 26, 138)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 54%)
CMYKcmyk(66.7%, 81.2%, 0%, 45.9%)
CIE-LABlab(20.65, 42.01, -58.17)
CIE-LCHlch(20.65, 71.76, 305.84°)
OKLaboklab(33.47% 0.0298 -0.1679)
OKLCHoklch(33.47% 0.171 280)
XYZxyz(6.0821, 3.1541, 24.3281)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A8A #768A1A
analogous
#1A3E8A #2E1A8A #661A8A
triadic
#2E1A8A #8A2E1A #1A8A2E
tetradic
#2E1A8A #8A1A3E #768A1A #1A8A66
square
#2E1A8A #8A1A3E #768A1A #1A8A66
split-complementary
#2E1A8A #8A661A #3E8A1A
monochromatic
#0C0723 #1D1057 #2E1A8A #3F24BD #5E43DC

Accessibility & contrast

On white

12.88
#2E1A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A8A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A8A#FFFFFF#000000##FFFFFF
##2E1A8A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1a8a;
/* rgb */ color: rgb(46, 26, 138);
/* oklch */ color: oklch(33.5% 0.171 280.0);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2e1a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a8a;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a8a",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 250.714,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33474,
    "c": 0.17055,
    "h": 280
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#2E1A8A
secondary
#A7BD43
accent
#EB3DCC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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