#2E1E7E#2E1E7E

#2E1E7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.152 H 281.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1E7E
RGBrgb(46, 30, 126)
HSLhsl(250, 62%, 31%)
HSVhsv(250, 76%, 49%)
CMYKcmyk(63.5%, 76.2%, 0%, 50.6%)
CIE-LABlab(20.11, 36.06, -51.50)
CIE-LCHlch(20.11, 62.87, 305.00°)
OKLaboklab(32.71% 0.0305 -0.1485)
OKLCHoklch(32.71% 0.152 281.6)
XYZxyz(5.3557, 3.0154, 20.0344)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E7E #6E7E1E
analogous
#1E3E7E #2E1E7E #5E1E7E
triadic
#2E1E7E #7E2E1E #1E7E2E
tetradic
#2E1E7E #7E1E3E #6E7E1E #1E7E5E
square
#2E1E7E #7E1E3E #6E7E1E #1E7E5E
split-complementary
#2E1E7E #7E5E1E #3E7E1E
monochromatic
#0A061B #1C124D #2E1E7E #402AAF #5C44D2

Accessibility & contrast

On white

13.10
#2E1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E7E
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E7E#FFFFFF#000000##FFFFFF
##2E1E7E1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2e1e7e;
/* rgb */ color: rgb(46, 30, 126);
/* oklch */ color: oklch(32.7% 0.152 281.6);
Tailwind
colors: {
  custom: {
    50: '#725ca4',
    500: '#2e1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e7e;
$custom-light: #725ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e7e",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 250,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32706,
    "c": 0.15163,
    "h": 281.6
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#2E1E7E
secondary
#9FB147
accent
#E543CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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