#2E1568#2E1568

#2E1568 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.134 H 289.1°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2E1568
RGBrgb(46, 21, 104)
HSLhsl(258, 66%, 25%)
HSVhsv(258, 80%, 41%)
CMYKcmyk(55.8%, 79.8%, 0%, 59.2%)
CIE-LABlab(16.09, 34.04, -43.90)
CIE-LCHlch(16.09, 55.56, 307.79°)
OKLaboklab(29.19% 0.0436 -0.1262)
OKLCHoklch(29.19% 0.134 289.1)
XYZxyz(3.8928, 2.1165, 13.2974)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1568 #4F6815
analogous
#152668 #2E1568 #581568
triadic
#2E1568 #682E15 #15682E
tetradic
#2E1568 #681526 #4F6815 #156858
square
#2E1568 #681526 #4F6815 #156858
split-complementary
#2E1568 #685815 #266815
monochromatic
#0B0519 #170B35 #2E1568 #451F9B #5B2ACE

Accessibility & contrast

On white

14.75
#2E1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2E1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1568
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1568#FFFFFF#000000##FFFFFF
##2E15681.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#182C3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1568;
/* rgb */ color: rgb(46, 21, 104);
/* oklch */ color: oklch(29.2% 0.134 289.1);
Tailwind
colors: {
  custom: {
    50: '#6e5594',
    500: '#2e1568',
    950: '#000000',
  },
}
SCSS
$custom: #2e1568;
$custom-light: #6e5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1568",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 258.072,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29188,
    "c": 0.13354,
    "h": 289.1
  },
  "luminance": 0.02117
}

Semantic roles & 50–950 ramp

primary
#2E1568
secondary
#809F3A
accent
#E93EB6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1568

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

Preview Lab → · Contrast checker → · Palette generator →

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