#2E1768#2E1768

#2E1768 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.131 H 288.6°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#2E1768
RGBrgb(46, 23, 104)
HSLhsl(257, 64%, 25%)
HSVhsv(257, 78%, 41%)
CMYKcmyk(55.8%, 77.9%, 0%, 59.2%)
CIE-LABlab(16.47, 32.96, -43.28)
CIE-LCHlch(16.47, 54.40, 307.29°)
OKLaboklab(29.46% 0.0418 -0.1244)
OKLCHoklch(29.46% 0.131 288.6)
XYZxyz(3.9311, 2.1929, 13.3102)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1768 #516817
analogous
#172868 #2E1768 #571768
triadic
#2E1768 #682E17 #17682E
tetradic
#2E1768 #681728 #516817 #176857
square
#2E1768 #681728 #516817 #176857
split-complementary
#2E1768 #685717 #286817
monochromatic
#0B0619 #180C36 #2E1768 #44229A #5A2DCC

Accessibility & contrast

On white

14.60
#2E1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1768
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1768#FFFFFF#000000##FFFFFF
##2E17681.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002766
Tritanopia (blue-blind)
#182D3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1768;
/* rgb */ color: rgb(46, 23, 104);
/* oklch */ color: oklch(29.5% 0.131 288.6);
Tailwind
colors: {
  custom: {
    50: '#6e5794',
    500: '#2e1768',
    950: '#000000',
  },
}
SCSS
$custom: #2e1768;
$custom-light: #6e5794;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1768",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 257.037,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29457,
    "c": 0.13126,
    "h": 288.6
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#2E1768
secondary
#839E3D
accent
#E741B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1768

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

Preview Lab → · Contrast checker → · Palette generator →

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