#2E1772#2E1772

#2E1772 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.144 H 285.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1772
RGBrgb(46, 23, 114)
HSLhsl(255, 66%, 27%)
HSVhsv(255, 80%, 45%)
CMYKcmyk(59.6%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.50, 36.08, -48.10)
CIE-LCHlch(17.50, 60.13, 306.87°)
OKLaboklab(30.49% 0.039 -0.1385)
OKLCHoklch(30.49% 0.144 285.7)
XYZxyz(4.4695, 2.4083, 16.1457)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1772 #5B7217
analogous
#172E72 #2E1772 #5C1772
triadic
#2E1772 #722E17 #17722E
tetradic
#2E1772 #72172E #5B7217 #17725C
square
#2E1772 #72172E #5B7217 #17725C
split-complementary
#2E1772 #725C17 #2E7217
monochromatic
#0A0519 #190D3F #2E1772 #4321A5 #592ED5

Accessibility & contrast

On white

14.17
#2E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1772
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1772#FFFFFF#000000##FFFFFF
##2E17721.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#0C3144
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1772;
/* rgb */ color: rgb(46, 23, 114);
/* oklch */ color: oklch(30.5% 0.144 285.7);
Tailwind
colors: {
  custom: {
    50: '#70579b',
    500: '#2e1772',
    950: '#000000',
  },
}
SCSS
$custom: #2e1772;
$custom-light: #70579b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1772",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 255.165,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30493,
    "c": 0.14392,
    "h": 285.7
  },
  "luminance": 0.02409
}

Semantic roles & 50–950 ramp

primary
#2E1772
secondary
#8DA83D
accent
#E93EBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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