#2E1C80#2E1C80

#2E1C80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.156 H 281.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1C80
RGBrgb(46, 28, 128)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 50%)
CMYKcmyk(64.1%, 78.1%, 0%, 49.8%)
CIE-LABlab(19.92, 37.82, -53.08)
CIE-LCHlch(19.92, 65.17, 305.47°)
OKLaboklab(32.64% 0.0314 -0.1531)
OKLCHoklch(32.64% 0.156 281.6)
XYZxyz(5.4370, 2.9695, 20.7045)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C80 #6E801C
analogous
#1C3C80 #2E1C80 #601C80
triadic
#2E1C80 #802E1C #1C802E
tetradic
#2E1C80 #801C3C #6E801C #1C8060
square
#2E1C80 #801C3C #6E801C #1C8060
split-complementary
#2E1C80 #80601C #3C801C
monochromatic
#0A061C #1C114E #2E1C80 #4027B2 #5C41D5

Accessibility & contrast

On white

13.17
#2E1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C80
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C80#FFFFFF#000000##FFFFFF
##2E1C801.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1c80;
/* rgb */ color: rgb(46, 28, 128);
/* oklch */ color: oklch(32.6% 0.156 281.6);
Tailwind
colors: {
  custom: {
    50: '#725ba6',
    500: '#2e1c80',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c80;
$custom-light: #725ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c80",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 250.8,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32639,
    "c": 0.15629,
    "h": 281.6
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#2E1C80
secondary
#9FB344
accent
#E741C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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