#2E1C7A#2E1C7A

#2E1C7A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.149 H 282.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2E1C7A
RGBrgb(46, 28, 122)
HSLhsl(251, 63%, 29%)
HSVhsv(251, 77%, 48%)
CMYKcmyk(62.3%, 77%, 0%, 52.2%)
CIE-LABlab(19.29, 35.90, -50.29)
CIE-LCHlch(19.29, 61.79, 305.52°)
OKLaboklab(32.01% 0.033 -0.145)
OKLCHoklch(32.01% 0.149 282.8)
XYZxyz(5.0537, 2.8161, 18.6858)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C7A #687A1C
analogous
#1C397A #2E1C7A #5D1C7A
triadic
#2E1C7A #7A2E1C #1C7A2E
tetradic
#2E1C7A #7A1C39 #687A1C #1C7A5D
square
#2E1C7A #7A1C39 #687A1C #1C7A5D
split-complementary
#2E1C7A #7A5D1C #397A1C
monochromatic
#090619 #1B1148 #2E1C7A #4127AC #5A3ED3

Accessibility & contrast

On white

13.43
#2E1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C7A
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C7A#FFFFFF#000000##FFFFFF
##2E1C7A1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1c7a;
/* rgb */ color: rgb(46, 28, 122);
/* oklch */ color: oklch(32.0% 0.149 282.8);
Tailwind
colors: {
  custom: {
    50: '#715ba1',
    500: '#2e1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c7a;
$custom-light: #715ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c7a",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 251.489,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.14868,
    "h": 282.8
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#2E1C7A
secondary
#9AAE44
accent
#E642C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2E1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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