#2E1979#2E1979

#2E1979 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.151 H 283.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1979
RGBrgb(46, 25, 121)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 79%, 47%)
CMYKcmyk(62%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.61, 37.21, -50.78)
CIE-LCHlch(18.61, 62.95, 306.24°)
OKLaboklab(31.5% 0.0355 -0.1464)
OKLCHoklch(31.5% 0.151 283.6)
XYZxyz(4.9245, 2.6563, 18.3387)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1979 #647919
analogous
#193479 #2E1979 #5E1979
triadic
#2E1979 #792E19 #19792E
tetradic
#2E1979 #791934 #647919 #19795E
square
#2E1979 #791934 #647919 #19795E
split-complementary
#2E1979 #795E19 #347919
monochromatic
#0A0519 #1B0F46 #2E1979 #4123AC #5A37D6

Accessibility & contrast

On white

13.71
#2E1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1979
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1979#FFFFFF#000000##FFFFFF
##2E19791.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1979;
/* rgb */ color: rgb(46, 25, 121);
/* oklch */ color: oklch(31.5% 0.151 283.6);
Tailwind
colors: {
  custom: {
    50: '#7159a1',
    500: '#2e1979',
    950: '#000000',
  },
}
SCSS
$custom: #2e1979;
$custom-light: #7159a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1979",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 253.125,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31496,
    "c": 0.15059,
    "h": 283.6
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#2E1979
secondary
#96AE40
accent
#E93FC4
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1979

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

Preview Lab → · Contrast checker → · Palette generator →

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