#2E1E7A#2E1E7A

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

Color values

HEX#2E1E7A
RGBrgb(46, 30, 122)
HSLhsl(250, 61%, 30%)
HSVhsv(250, 75%, 48%)
CMYKcmyk(62.3%, 75.4%, 0%, 52.2%)
CIE-LABlab(19.70, 34.76, -49.63)
CIE-LCHlch(19.70, 60.59, 305.00°)
OKLaboklab(32.29% 0.0314 -0.143)
OKLCHoklch(32.29% 0.146 282.4)
XYZxyz(5.1027, 2.9142, 18.7022)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E7A #6A7A1E
analogous
#1E3C7A #2E1E7A #5C1E7A
triadic
#2E1E7A #7A2E1E #1E7A2E
tetradic
#2E1E7A #7A1E3C #6A7A1E #1E7A5C
square
#2E1E7A #7A1E3C #6A7A1E #1E7A5C
split-complementary
#2E1E7A #7A5C1E #3C7A1E
monochromatic
#090619 #1B1249 #2E1E7A #412AAB #5B42D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1E7A#FFFFFF#000000##FFFFFF
##2E1E7A1.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)
#00337D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1e7a;
/* rgb */ color: rgb(46, 30, 122);
/* oklch */ color: oklch(32.3% 0.146 282.4);
Tailwind
colors: {
  custom: {
    50: '#715ca1',
    500: '#2e1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e7a;
$custom-light: #715ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e7a",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 250.435,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32293,
    "c": 0.14645,
    "h": 282.4
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#2E1E7A
secondary
#9CAE46
accent
#E444C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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