#2E1C7C#2E1C7C

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

Color values

HEX#2E1C7C
RGBrgb(46, 28, 124)
HSLhsl(251, 63%, 30%)
HSVhsv(251, 77%, 49%)
CMYKcmyk(62.9%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.50, 36.54, -51.23)
CIE-LCHlch(19.50, 62.92, 305.50°)
OKLaboklab(32.22% 0.0325 -0.1477)
OKLCHoklch(32.22% 0.151 282.4)
XYZxyz(5.1789, 2.8662, 19.3452)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C7C #6A7C1C
analogous
#1C3A7C #2E1C7C #5E1C7C
triadic
#2E1C7C #7C2E1C #1C7C2E
tetradic
#2E1C7C #7C1C3A #6A7C1C #1C7C5E
square
#2E1C7C #7C1C3A #6A7C1C #1C7C5E
split-complementary
#2E1C7C #7C5E1C #3A7C1C
monochromatic
#090619 #1B114A #2E1C7C #4127AE #5B3FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1C7C#FFFFFF#000000##FFFFFF
##2E1C7C1.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)
#00327F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1c7c;
/* rgb */ color: rgb(46, 28, 124);
/* oklch */ color: oklch(32.2% 0.151 282.4);
Tailwind
colors: {
  custom: {
    50: '#715ba3',
    500: '#2e1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c7c;
$custom-light: #715ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c7c",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 251.25,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32216,
    "c": 0.15122,
    "h": 282.4
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#2E1C7C
secondary
#9CB044
accent
#E642C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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