#2E1380#2E1380

#2E1380 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.165 H 283.0°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#2E1380
RGBrgb(46, 19, 128)
HSLhsl(255, 74%, 29%)
HSVhsv(255, 85%, 50%)
CMYKcmyk(64.1%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.39, 42.26, -55.61)
CIE-LCHlch(18.39, 69.85, 307.23°)
OKLaboklab(31.57% 0.0369 -0.1604)
OKLCHoklch(31.57% 0.165 283)
XYZxyz(5.2547, 2.6047, 20.6438)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1380 #658013
analogous
#132F80 #2E1380 #651380
triadic
#2E1380 #802E13 #13802E
tetradic
#2E1380 #80132F #658013 #138065
square
#2E1380 #80132F #658013 #138065
split-complementary
#2E1380 #806513 #2F8013
monochromatic
#0A041B #1B0B4B #2E1380 #411BB5 #5A2DE0

Accessibility & contrast

On white

13.81
#2E1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1380
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1380#FFFFFF#000000##FFFFFF
##2E13801.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1380;
/* rgb */ color: rgb(46, 19, 128);
/* oklch */ color: oklch(31.6% 0.165 283.0);
Tailwind
colors: {
  custom: {
    50: '#7356a6',
    500: '#2e1380',
    950: '#000000',
  },
}
SCSS
$custom: #2e1380;
$custom-light: #7356a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1380",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 254.862,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31571,
    "c": 0.16457,
    "h": 283
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#2E1380
secondary
#97B539
accent
#F137C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1380

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

Preview Lab → · Contrast checker → · Palette generator →

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