#2E1780#2E1780

#2E1780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.161 H 282.4°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2E1780
RGBrgb(46, 23, 128)
HSLhsl(253, 70%, 30%)
HSVhsv(253, 82%, 50%)
CMYKcmyk(64.1%, 82%, 0%, 49.8%)
CIE-LABlab(19.02, 40.41, -54.56)
CIE-LCHlch(19.02, 67.89, 306.52°)
OKLaboklab(32.01% 0.0346 -0.1574)
OKLCHoklch(32.01% 0.161 282.4)
XYZxyz(5.3282, 2.7518, 20.6683)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1780 #698017
analogous
#173580 #2E1780 #631780
triadic
#2E1780 #802E17 #17802E
tetradic
#2E1780 #801735 #698017 #178063
square
#2E1780 #801735 #698017 #178063
split-complementary
#2E1780 #806317 #358017
monochromatic
#09051A #1B0E4C #2E1780 #4120B4 #5A36DB

Accessibility & contrast

On white

13.54
#2E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1780
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1780#FFFFFF#000000##FFFFFF
##2E17801.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1780;
/* rgb */ color: rgb(46, 23, 128);
/* oklch */ color: oklch(32.0% 0.161 282.4);
Tailwind
colors: {
  custom: {
    50: '#7358a6',
    500: '#2e1780',
    950: '#000000',
  },
}
SCSS
$custom: #2e1780;
$custom-light: #7358a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1780",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 253.143,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3201,
    "c": 0.16114,
    "h": 282.4
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#2E1780
secondary
#9BB43E
accent
#EC3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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