#2E1F79#2E1F79

#2E1F79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.144 H 282.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2E1F79
RGBrgb(46, 31, 121)
HSLhsl(250, 59%, 30%)
HSVhsv(250, 74%, 47%)
CMYKcmyk(62%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.81, 33.84, -48.81)
CIE-LCHlch(19.81, 59.40, 304.74°)
OKLaboklab(32.34% 0.0309 -0.1407)
OKLCHoklch(32.34% 0.144 282.4)
XYZxyz(5.0668, 2.9409, 18.3861)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F79 #6A791F
analogous
#1F3D79 #2E1F79 #5B1F79
triadic
#2E1F79 #792E1F #1F792E
tetradic
#2E1F79 #791F3D #6A791F #1F795B
square
#2E1F79 #791F3D #6A791F #1F795B
split-complementary
#2E1F79 #795B1F #3D791F
monochromatic
#090618 #1B1348 #2E1F79 #412BAA #5B43CF

Accessibility & contrast

On white

13.22
#2E1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F79
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F79#FFFFFF#000000##FFFFFF
##2E1F791.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1f79;
/* rgb */ color: rgb(46, 31, 121);
/* oklch */ color: oklch(32.3% 0.144 282.4);
Tailwind
colors: {
  custom: {
    50: '#715ca1',
    500: '#2e1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f79;
$custom-light: #715ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f79",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 250,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3234,
    "c": 0.144,
    "h": 282.4
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2E1F79
secondary
#9CAC47
accent
#E245C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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