#2E1D7B#2E1D7B

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

Color values

HEX#2E1D7B
RGBrgb(46, 29, 123)
HSLhsl(251, 62%, 30%)
HSVhsv(251, 76%, 48%)
CMYKcmyk(62.6%, 76.4%, 0%, 51.8%)
CIE-LABlab(19.59, 35.65, -50.43)
CIE-LCHlch(19.59, 61.76, 305.26°)
OKLaboklab(32.25% 0.032 -0.1454)
OKLCHoklch(32.25% 0.149 282.4)
XYZxyz(5.1401, 2.8893, 19.0219)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D7B #6A7B1D
analogous
#1D3B7B #2E1D7B #5D1D7B
triadic
#2E1D7B #7B2E1D #1D7B2E
tetradic
#2E1D7B #7B1D3B #6A7B1D #1D7B5D
square
#2E1D7B #7B1D3B #6A7B1D #1D7B5D
split-complementary
#2E1D7B #7B5D1D #3B7B1D
monochromatic
#090619 #1B1149 #2E1D7B #4129AD #5B40D2

Accessibility & contrast

On white

13.31
#2E1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D7B
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D7B#FFFFFF#000000##FFFFFF
##2E1D7B1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1d7b;
/* rgb */ color: rgb(46, 29, 123);
/* oklch */ color: oklch(32.3% 0.149 282.4);
Tailwind
colors: {
  custom: {
    50: '#715ba2',
    500: '#2e1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d7b;
$custom-light: #715ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d7b",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 250.851,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32252,
    "c": 0.14886,
    "h": 282.4
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#2E1D7B
secondary
#9CAF45
accent
#E543C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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