#2E1368#2E1368

#2E1368 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.136 H 289.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2E1368
RGBrgb(46, 19, 104)
HSLhsl(259, 69%, 24%)
HSVhsv(259, 82%, 41%)
CMYKcmyk(55.8%, 81.7%, 0%, 59.2%)
CIE-LABlab(15.73, 35.08, -44.50)
CIE-LCHlch(15.73, 56.66, 308.25°)
OKLaboklab(28.94% 0.0453 -0.1279)
OKLCHoklch(28.94% 0.136 289.5)
XYZxyz(3.8575, 2.0459, 13.2857)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1368 #4D6813
analogous
#132368 #2E1368 #591368
triadic
#2E1368 #682E13 #13682E
tetradic
#2E1368 #681323 #4D6813 #136859
square
#2E1368 #681323 #4D6813 #136859
split-complementary
#2E1368 #685913 #236813
monochromatic
#0B051A #170A34 #2E1368 #451C9C #5C26CF

Accessibility & contrast

On white

14.90
#2E1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E1368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1368
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1368#FFFFFF#000000##FFFFFF
##2E13681.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#182B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e1368;
/* rgb */ color: rgb(46, 19, 104);
/* oklch */ color: oklch(28.9% 0.136 289.5);
Tailwind
colors: {
  custom: {
    50: '#6e5494',
    500: '#2e1368',
    950: '#000000',
  },
}
SCSS
$custom: #2e1368;
$custom-light: #6e5494;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1368",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 259.059,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28936,
    "c": 0.13571,
    "h": 289.5
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#2E1368
secondary
#7E9F37
accent
#EC3CB4
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1368

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

Preview Lab → · Contrast checker → · Palette generator →

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