#2E1A80#2E1A80

#2E1A80 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.158 H 281.9°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2E1A80
RGBrgb(46, 26, 128)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(64.1%, 79.7%, 0%, 49.8%)
CIE-LABlab(19.55, 38.89, -53.69)
CIE-LCHlch(19.55, 66.30, 305.92°)
OKLaboklab(32.38% 0.0327 -0.1549)
OKLCHoklch(32.38% 0.158 281.9)
XYZxyz(5.3912, 2.8778, 20.6893)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A80 #6C801A
analogous
#1A3980 #2E1A80 #611A80
triadic
#2E1A80 #802E1A #1A802E
tetradic
#2E1A80 #801A39 #6C801A #1A8061
square
#2E1A80 #801A39 #6C801A #1A8061
split-complementary
#2E1A80 #80611A #39801A
monochromatic
#09051A #1C104D #2E1A80 #4024B3 #5B3DD8

Accessibility & contrast

On white

13.33
#2E1A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A80
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A80#FFFFFF#000000##FFFFFF
##2E1A801.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1a80;
/* rgb */ color: rgb(46, 26, 128);
/* oklch */ color: oklch(32.4% 0.158 281.9);
Tailwind
colors: {
  custom: {
    50: '#725aa6',
    500: '#2e1a80',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a80;
$custom-light: #725aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a80",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 251.765,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32377,
    "c": 0.1583,
    "h": 281.9
  },
  "luminance": 0.02878
}

Semantic roles & 50–950 ramp

primary
#2E1A80
secondary
#9EB442
accent
#E93FC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1A80

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

Preview Lab → · Contrast checker → · Palette generator →

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