#2E1A82#2E1A82

#2E1A82 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.161 H 281.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2E1A82
RGBrgb(46, 26, 130)
HSLhsl(252, 67%, 31%)
HSVhsv(252, 80%, 51%)
CMYKcmyk(64.6%, 80%, 0%, 49%)
CIE-LABlab(19.77, 39.52, -54.60)
CIE-LCHlch(19.77, 67.40, 305.90°)
OKLaboklab(32.59% 0.0322 -0.1575)
OKLCHoklch(32.59% 0.161 281.5)
XYZxyz(5.5241, 2.9309, 21.3894)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A82 #6E821A
analogous
#1A3A82 #2E1A82 #621A82
triadic
#2E1A82 #822E1A #1A822E
tetradic
#2E1A82 #821A3A #6E821A #1A8262
square
#2E1A82 #821A3A #6E821A #1A8262
split-complementary
#2E1A82 #82621A #3A821A
monochromatic
#0A061C #1C104F #2E1A82 #4024B5 #5C3ED8

Accessibility & contrast

On white

13.24
#2E1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A82
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A82#FFFFFF#000000##FFFFFF
##2E1A821.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1a82;
/* rgb */ color: rgb(46, 26, 130);
/* oklch */ color: oklch(32.6% 0.161 281.5);
Tailwind
colors: {
  custom: {
    50: '#735aa7',
    500: '#2e1a82',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a82;
$custom-light: #735aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a82",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 251.538,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32594,
    "c": 0.16078,
    "h": 281.5
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#2E1A82
secondary
#9FB642
accent
#EA3EC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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