#2E1D7A#2E1D7A

#2E1D7A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.148 H 282.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#2E1D7A
RGBrgb(46, 29, 122)
HSLhsl(251, 62%, 30%)
HSVhsv(251, 76%, 48%)
CMYKcmyk(62.3%, 76.2%, 0%, 52.2%)
CIE-LABlab(19.49, 35.33, -49.96)
CIE-LCHlch(19.49, 61.19, 305.26°)
OKLaboklab(32.15% 0.0322 -0.144)
OKLCHoklch(32.15% 0.148 282.6)
XYZxyz(5.0778, 2.8644, 18.6939)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D7A #697A1D
analogous
#1D3B7A #2E1D7A #5D1D7A
triadic
#2E1D7A #7A2E1D #1D7A2E
tetradic
#2E1D7A #7A1D3B #697A1D #1D7A5D
square
#2E1D7A #7A1D3B #697A1D #1D7A5D
split-complementary
#2E1D7A #7A5D1D #3B7A1D
monochromatic
#090619 #1B1149 #2E1D7A #4129AB #5A40D2

Accessibility & contrast

On white

13.35
#2E1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D7A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D7A#FFFFFF#000000##FFFFFF
##2E1D7A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1d7a;
/* rgb */ color: rgb(46, 29, 122);
/* oklch */ color: oklch(32.1% 0.148 282.6);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2e1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d7a;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d7a",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 250.968,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32148,
    "c": 0.14758,
    "h": 282.6
  },
  "luminance": 0.02865
}

Semantic roles & 50–950 ramp

primary
#2E1D7A
secondary
#9BAE45
accent
#E543C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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