#2E1D7C#2E1D7C

#2E1D7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.150 H 282.2°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1D7C
RGBrgb(46, 29, 124)
HSLhsl(251, 62%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(62.9%, 76.6%, 0%, 51.4%)
CIE-LABlab(19.70, 35.98, -50.90)
CIE-LCHlch(19.70, 62.33, 305.25°)
OKLaboklab(32.36% 0.0317 -0.1468)
OKLCHoklch(32.36% 0.15 282.2)
XYZxyz(5.2030, 2.9144, 19.3532)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D7C #6B7C1D
analogous
#1D3B7C #2E1D7C #5E1D7C
triadic
#2E1D7C #7C2E1D #1D7C2E
tetradic
#2E1D7C #7C1D3B #6B7C1D #1D7C5E
square
#2E1D7C #7C1D3B #6B7C1D #1D7C5E
split-complementary
#2E1D7C #7C5E1D #3B7C1D
monochromatic
#090619 #1C114A #2E1D7C #4029AE #5B41D3

Accessibility & contrast

On white

13.27
#2E1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1D7C
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D7C#FFFFFF#000000##FFFFFF
##2E1D7C1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1d7c;
/* rgb */ color: rgb(46, 29, 124);
/* oklch */ color: oklch(32.4% 0.150 282.2);
Tailwind
colors: {
  custom: {
    50: '#715ba3',
    500: '#2e1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d7c;
$custom-light: #715ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d7c",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 250.737,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.32356,
    "c": 0.15015,
    "h": 282.2
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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