#2E1880#2E1880

#2E1880 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.160 H 282.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1880
RGBrgb(46, 24, 128)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 50%)
CMYKcmyk(64.1%, 81.3%, 0%, 49.8%)
CIE-LABlab(19.19, 39.91, -54.28)
CIE-LCHlch(19.19, 67.37, 306.33°)
OKLaboklab(32.13% 0.034 -0.1566)
OKLCHoklch(32.13% 0.16 282.3)
XYZxyz(5.3484, 2.7922, 20.6750)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1880 #6A8018
analogous
#183680 #2E1880 #621880
triadic
#2E1880 #802E18 #18802E
tetradic
#2E1880 #801836 #6A8018 #188062
square
#2E1880 #801836 #6A8018 #188062
split-complementary
#2E1880 #806218 #368018
monochromatic
#09051A #1B0E4C #2E1880 #4122B4 #5B39DA

Accessibility & contrast

On white

13.47
#2E1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1880
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1880#FFFFFF#000000##FFFFFF
##2E18801.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1880;
/* rgb */ color: rgb(46, 24, 128);
/* oklch */ color: oklch(32.1% 0.160 282.3);
Tailwind
colors: {
  custom: {
    50: '#7359a6',
    500: '#2e1880',
    950: '#000000',
  },
}
SCSS
$custom: #2e1880;
$custom-light: #7359a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1880",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 252.692,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32129,
    "c": 0.16022,
    "h": 282.3
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#2E1880
secondary
#9CB440
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1880

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

Preview Lab → · Contrast checker → · Palette generator →

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