#2E1978#2E1978

#2E1978 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.149 H 283.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1978
RGBrgb(46, 25, 120)
HSLhsl(253, 66%, 28%)
HSVhsv(253, 79%, 47%)
CMYKcmyk(61.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.50, 36.90, -50.31)
CIE-LCHlch(18.50, 62.39, 306.26°)
OKLaboklab(31.39% 0.0357 -0.145)
OKLCHoklch(31.39% 0.149 283.9)
XYZxyz(4.8635, 2.6319, 18.0174)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1978 #637819
analogous
#193378 #2E1978 #5D1978
triadic
#2E1978 #782E19 #19782E
tetradic
#2E1978 #781933 #637819 #19785D
square
#2E1978 #781933 #637819 #19785D
split-complementary
#2E1978 #785D19 #337819
monochromatic
#0A0519 #1B0E45 #2E1978 #4124AB #5936D5

Accessibility & contrast

On white

13.76
#2E1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1978
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1978#FFFFFF#000000##FFFFFF
##2E19781.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1978;
/* rgb */ color: rgb(46, 25, 120);
/* oklch */ color: oklch(31.4% 0.149 283.9);
Tailwind
colors: {
  custom: {
    50: '#7159a0',
    500: '#2e1978',
    950: '#000000',
  },
}
SCSS
$custom: #2e1978;
$custom-light: #7159a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1978",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 253.263,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3139,
    "c": 0.14934,
    "h": 283.9
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#2E1978
secondary
#95AD40
accent
#E83FC3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2E1978

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

Preview Lab → · Contrast checker → · Palette generator →

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