#2E1778#2E1778

#2E1778 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 284.2°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2E1778
RGBrgb(46, 23, 120)
HSLhsl(254, 68%, 28%)
HSVhsv(254, 81%, 47%)
CMYKcmyk(61.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(18.14, 37.94, -50.91)
CIE-LCHlch(18.14, 63.49, 306.70°)
OKLaboklab(31.14% 0.0372 -0.1467)
OKLCHoklch(31.14% 0.151 284.2)
XYZxyz(4.8222, 2.5494, 18.0036)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1778 #617817
analogous
#173078 #2E1778 #5E1778
triadic
#2E1778 #782E17 #17782E
tetradic
#2E1778 #781730 #617817 #17785E
square
#2E1778 #781730 #617817 #17785E
split-complementary
#2E1778 #785E17 #307817
monochromatic
#0A051A #1A0D45 #2E1778 #4221AB #5932D8

Accessibility & contrast

On white

13.91
#2E1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1778
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1778#FFFFFF#000000##FFFFFF
##2E17781.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1778;
/* rgb */ color: rgb(46, 23, 120);
/* oklch */ color: oklch(31.1% 0.151 284.2);
Tailwind
colors: {
  custom: {
    50: '#7158a0',
    500: '#2e1778',
    950: '#000000',
  },
}
SCSS
$custom: #2e1778;
$custom-light: #7158a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1778",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 254.227,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31135,
    "c": 0.15136,
    "h": 284.2
  },
  "luminance": 0.0255
}

Semantic roles & 50–950 ramp

primary
#2E1778
secondary
#93AD3E
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1778

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

Preview Lab → · Contrast checker → · Palette generator →

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