#2E1879#2E1879

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

Color values

HEX#2E1879
RGBrgb(46, 24, 121)
HSLhsl(254, 67%, 28%)
HSVhsv(254, 80%, 47%)
CMYKcmyk(62%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.43, 37.74, -51.08)
CIE-LCHlch(18.43, 63.51, 306.46°)
OKLaboklab(31.37% 0.0362 -0.1472)
OKLCHoklch(31.37% 0.152 283.8)
XYZxyz(4.9035, 2.6143, 18.3317)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1879 #637918
analogous
#183279 #2E1879 #5E1879
triadic
#2E1879 #792E18 #18792E
tetradic
#2E1879 #791832 #637918 #18795E
square
#2E1879 #791832 #637918 #18795E
split-complementary
#2E1879 #795E18 #327918
monochromatic
#0A051A #1B0E46 #2E1879 #4122AC #5935D7

Accessibility & contrast

On white

13.79
#2E1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1879
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1879#FFFFFF#000000##FFFFFF
##2E18791.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1879;
/* rgb */ color: rgb(46, 24, 121);
/* oklch */ color: oklch(31.4% 0.152 283.8);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2e1879',
    950: '#000000',
  },
}
SCSS
$custom: #2e1879;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1879",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 253.608,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.15161,
    "h": 283.8
  },
  "luminance": 0.02615
}

Semantic roles & 50–950 ramp

primary
#2E1879
secondary
#95AE3F
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1879

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

Preview Lab → · Contrast checker → · Palette generator →

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