#2E1779#2E1779

#2E1779 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.153 H 284.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#2E1779
RGBrgb(46, 23, 121)
HSLhsl(254, 68%, 28%)
HSVhsv(254, 81%, 47%)
CMYKcmyk(62%, 81%, 0%, 52.5%)
CIE-LABlab(18.25, 38.25, -51.37)
CIE-LCHlch(18.25, 64.05, 306.67°)
OKLaboklab(31.24% 0.0369 -0.1481)
OKLCHoklch(31.24% 0.153 284)
XYZxyz(4.8832, 2.5738, 18.3249)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1779 #627917
analogous
#173179 #2E1779 #5F1779
triadic
#2E1779 #792E17 #17792E
tetradic
#2E1779 #791731 #627917 #17795F
square
#2E1779 #791731 #627917 #17795F
split-complementary
#2E1779 #795F17 #317917
monochromatic
#0A051A #1A0D46 #2E1779 #4221AC #5932D8

Accessibility & contrast

On white

13.86
#2E1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2E1779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1779
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1779#FFFFFF#000000##FFFFFF
##2E17791.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1779;
/* rgb */ color: rgb(46, 23, 121);
/* oklch */ color: oklch(31.2% 0.153 284.0);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2e1779',
    950: '#000000',
  },
}
SCSS
$custom: #2e1779;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1779",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 254.082,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31243,
    "c": 0.1526,
    "h": 284
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#2E1779
secondary
#94AE3E
accent
#EB3DC2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1779

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

Preview Lab → · Contrast checker → · Palette generator →

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