#2E1982#2E1982

#2E1982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.162 H 281.7°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2E1982
RGBrgb(46, 25, 130)
HSLhsl(252, 68%, 30%)
HSVhsv(252, 81%, 51%)
CMYKcmyk(64.6%, 80.8%, 0%, 49%)
CIE-LABlab(19.59, 40.03, -54.89)
CIE-LCHlch(19.59, 67.94, 306.10°)
OKLaboklab(32.47% 0.0328 -0.1584)
OKLCHoklch(32.47% 0.162 281.7)
XYZxyz(5.5023, 2.8874, 21.3821)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1982 #6D8219
analogous
#193882 #2E1982 #621982
triadic
#2E1982 #822E19 #19822E
tetradic
#2E1982 #821938 #6D8219 #198262
square
#2E1982 #821938 #6D8219 #198262
split-complementary
#2E1982 #826219 #388219
monochromatic
#0A051B #1C0F4F #2E1982 #4023B5 #5B3CD9

Accessibility & contrast

On white

13.31
#2E1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2E1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1982
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1982#FFFFFF#000000##FFFFFF
##2E19821.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1982;
/* rgb */ color: rgb(46, 25, 130);
/* oklch */ color: oklch(32.5% 0.162 281.7);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2e1982',
    950: '#000000',
  },
}
SCSS
$custom: #2e1982;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1982",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 252,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3247,
    "c": 0.16173,
    "h": 281.7
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#2E1982
secondary
#9FB641
accent
#EB3DC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1982

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

Preview Lab → · Contrast checker → · Palette generator →

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