#2E1F76#2E1F76

#2E1F76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.140 H 283.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1F76
RGBrgb(46, 31, 118)
HSLhsl(250, 58%, 29%)
HSVhsv(250, 74%, 46%)
CMYKcmyk(61%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.51, 32.85, -47.38)
CIE-LCHlch(19.51, 57.65, 304.74°)
OKLaboklab(32.04% 0.0315 -0.1364)
OKLCHoklch(32.04% 0.14 283)
XYZxyz(4.8857, 2.8685, 17.4323)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F76 #67761F
analogous
#1F3C76 #2E1F76 #5A1F76
triadic
#2E1F76 #762E1F #1F762E
tetradic
#2E1F76 #761F3C #67761F #1F765A
square
#2E1F76 #761F3C #67761F #1F765A
split-complementary
#2E1F76 #765A1F #3C761F
monochromatic
#090618 #1B1246 #2E1F76 #412CA6 #5A42CD

Accessibility & contrast

On white

13.34
#2E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F76
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F76#FFFFFF#000000##FFFFFF
##2E1F761.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#033648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1f76;
/* rgb */ color: rgb(46, 31, 118);
/* oklch */ color: oklch(32.0% 0.140 283.0);
Tailwind
colors: {
  custom: {
    50: '#705c9e',
    500: '#2e1f76',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f76;
$custom-light: #705c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f76",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 250.345,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.14003,
    "h": 283
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#2E1F76
secondary
#99AA47
accent
#E246C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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