#2E1B7C#2E1B7C

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

Color values

HEX#2E1B7C
RGBrgb(46, 27, 124)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(62.9%, 78.2%, 0%, 51.4%)
CIE-LABlab(19.31, 37.09, -51.55)
CIE-LCHlch(19.31, 63.50, 305.74°)
OKLaboklab(32.08% 0.0332 -0.1486)
OKLCHoklch(32.08% 0.152 282.6)
XYZxyz(5.1556, 2.8196, 19.3374)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B7C #697C1B
analogous
#1B387C #2E1B7C #5F1B7C
triadic
#2E1B7C #7C2E1B #1B7C2E
tetradic
#2E1B7C #7C1B38 #697C1B #1B7C5F
square
#2E1B7C #7C1B38 #697C1B #1B7C5F
split-complementary
#2E1B7C #7C5F1B #387C1B
monochromatic
#090519 #1B104A #2E1B7C #4126AE #5A3DD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #2e1b7c;
/* rgb */ color: rgb(46, 27, 124);
/* oklch */ color: oklch(32.1% 0.152 282.6);
Tailwind
colors: {
  custom: {
    50: '#725aa3',
    500: '#2e1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b7c;
$custom-light: #725aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b7c",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 251.753,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3208,
    "c": 0.15229,
    "h": 282.6
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#2E1B7C
secondary
#9BB043
accent
#E741C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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