#2E1678#2E1678

#2E1678 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 284.4°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1678
RGBrgb(46, 22, 120)
HSLhsl(255, 69%, 28%)
HSVhsv(255, 82%, 47%)
CMYKcmyk(61.7%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.97, 38.45, -51.20)
CIE-LCHlch(17.97, 64.03, 306.90°)
OKLaboklab(31.01% 0.0379 -0.1476)
OKLCHoklch(31.01% 0.152 284.4)
XYZxyz(4.8027, 2.5104, 17.9971)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1678 #607816
analogous
#162F78 #2E1678 #5F1678
triadic
#2E1678 #782E16 #16782E
tetradic
#2E1678 #78162F #607816 #16785F
square
#2E1678 #78162F #607816 #16785F
split-complementary
#2E1678 #785F16 #2F7816
monochromatic
#0A051A #1A0D44 #2E1678 #421FAC #592FD9

Accessibility & contrast

On white

13.98
#2E1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1678
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1678#FFFFFF#000000##FFFFFF
##2E16781.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e1678;
/* rgb */ color: rgb(46, 22, 120);
/* oklch */ color: oklch(31.0% 0.152 284.4);
Tailwind
colors: {
  custom: {
    50: '#7157a0',
    500: '#2e1678',
    950: '#000000',
  },
}
SCSS
$custom: #2e1678;
$custom-light: #7157a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1678",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 254.694,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31013,
    "c": 0.15234,
    "h": 284.4
  },
  "luminance": 0.02511
}

Semantic roles & 50–950 ramp

primary
#2E1678
secondary
#92AD3C
accent
#EC3CC1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1678

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

Preview Lab → · Contrast checker → · Palette generator →

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