#2E1680#2E1680

#2E1680 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.162 H 282.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#2E1680
RGBrgb(46, 22, 128)
HSLhsl(254, 71%, 29%)
HSVhsv(254, 83%, 50%)
CMYKcmyk(64.1%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.85, 40.89, -54.84)
CIE-LCHlch(18.85, 68.40, 306.71°)
OKLaboklab(31.9% 0.0352 -0.1582)
OKLCHoklch(31.9% 0.162 282.6)
XYZxyz(5.3087, 2.7128, 20.6618)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1680 #688016
analogous
#163380 #2E1680 #631680
triadic
#2E1680 #802E16 #16802E
tetradic
#2E1680 #801633 #688016 #168063
square
#2E1680 #801633 #688016 #168063
split-complementary
#2E1680 #806316 #338016
monochromatic
#09041A #1B0D4C #2E1680 #411FB4 #5A34DC

Accessibility & contrast

On white

13.61
#2E1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1680
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1680#FFFFFF#000000##FFFFFF
##2E16801.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1680;
/* rgb */ color: rgb(46, 22, 128);
/* oklch */ color: oklch(31.9% 0.162 282.6);
Tailwind
colors: {
  custom: {
    50: '#7358a6',
    500: '#2e1680',
    950: '#000000',
  },
}
SCSS
$custom: #2e1680;
$custom-light: #7358a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1680",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 253.585,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31895,
    "c": 0.16203,
    "h": 282.6
  },
  "luminance": 0.02713
}

Semantic roles & 50–950 ramp

primary
#2E1680
secondary
#9AB53D
accent
#ED3AC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E1680

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

Preview Lab → · Contrast checker → · Palette generator →

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