#2E1794#2E1794

#2E1794 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.185 H 278.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1794
RGBrgb(46, 23, 148)
HSLhsl(251, 73%, 34%)
HSVhsv(251, 84%, 58%)
CMYKcmyk(68.9%, 84.5%, 0%, 42%)
CIE-LABlab(21.32, 46.45, -63.28)
CIE-LCHlch(21.32, 78.50, 306.28°)
OKLaboklab(34.28% 0.028 -0.1827)
OKLCHoklch(34.28% 0.185 278.7)
XYZxyz(6.7767, 3.3312, 28.2971)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1794 #7D9417
analogous
#173E94 #2E1794 #6C1794
triadic
#2E1794 #942E17 #17942E
tetradic
#2E1794 #94173E #7D9417 #17946C
square
#2E1794 #94173E #7D9417 #17946C
split-complementary
#2E1794 #946C17 #3E9417
monochromatic
#0D072A #1E0F5F #2E1794 #3E1FC9 #6144E2

Accessibility & contrast

On white

12.60
#2E1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1794
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1794#FFFFFF#000000##FFFFFF
##2E17941.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002E92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1794;
/* rgb */ color: rgb(46, 23, 148);
/* oklch */ color: oklch(34.3% 0.185 278.7);
Tailwind
colors: {
  custom: {
    50: '#775ab5',
    500: '#2e1794',
    950: '#000000',
  },
}
SCSS
$custom: #2e1794;
$custom-light: #775ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1794",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 251.04,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34278,
    "c": 0.18488,
    "h": 278.7
  },
  "luminance": 0.03332
}

Semantic roles & 50–950 ramp

primary
#2E1794
secondary
#ABC344
accent
#F038CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1794

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

Preview Lab → · Contrast checker → · Palette generator →

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