#2E1980#2E1980

#2E1980 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.159 H 282.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#2E1980
RGBrgb(46, 25, 128)
HSLhsl(252, 67%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(64.1%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.37, 39.41, -53.99)
CIE-LCHlch(19.37, 66.84, 306.13°)
OKLaboklab(32.25% 0.0334 -0.1557)
OKLCHoklch(32.25% 0.159 282.1)
XYZxyz(5.3694, 2.8342, 20.6820)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1980 #6B8019
analogous
#193880 #2E1980 #611980
triadic
#2E1980 #802E19 #19802E
tetradic
#2E1980 #801938 #6B8019 #198061
square
#2E1980 #801938 #6B8019 #198061
split-complementary
#2E1980 #806119 #388019
monochromatic
#09051A #1C0F4D #2E1980 #4023B3 #5B3BD9

Accessibility & contrast

On white

13.40
#2E1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1980
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1980#FFFFFF#000000##FFFFFF
##2E19801.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.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: #2e1980;
/* rgb */ color: rgb(46, 25, 128);
/* oklch */ color: oklch(32.3% 0.159 282.1);
Tailwind
colors: {
  custom: {
    50: '#7359a6',
    500: '#2e1980',
    950: '#000000',
  },
}
SCSS
$custom: #2e1980;
$custom-light: #7359a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1980",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 252.233,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32251,
    "c": 0.15927,
    "h": 282.1
  },
  "luminance": 0.02835
}

Semantic roles & 50–950 ramp

primary
#2E1980
secondary
#9DB441
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1980

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

Preview Lab → · Contrast checker → · Palette generator →

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