#2E1882#2E1882

#2E1882 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 281.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1882
RGBrgb(46, 24, 130)
HSLhsl(252, 69%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(64.6%, 81.5%, 0%, 49%)
CIE-LABlab(19.41, 40.53, -55.18)
CIE-LCHlch(19.41, 68.46, 306.30°)
OKLaboklab(32.35% 0.0334 -0.1592)
OKLCHoklch(32.35% 0.163 281.8)
XYZxyz(5.4813, 2.8454, 21.3751)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1882 #6C8218
analogous
#183782 #2E1882 #631882
triadic
#2E1882 #822E18 #18822E
tetradic
#2E1882 #821837 #6C8218 #188263
square
#2E1882 #821837 #6C8218 #188263
split-complementary
#2E1882 #826318 #378218
monochromatic
#09051B #1C0E4E #2E1882 #4022B6 #5B3ADB

Accessibility & contrast

On white

13.38
#2E1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2E1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1882
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1882#FFFFFF#000000##FFFFFF
##2E18821.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1882;
/* rgb */ color: rgb(46, 24, 130);
/* oklch */ color: oklch(32.3% 0.163 281.8);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2e1882',
    950: '#000000',
  },
}
SCSS
$custom: #2e1882;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1882",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 252.453,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32349,
    "c": 0.16265,
    "h": 281.8
  },
  "luminance": 0.02846
}

Semantic roles & 50–950 ramp

primary
#2E1882
secondary
#9EB640
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1882

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

Preview Lab → · Contrast checker → · Palette generator →

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