#2E1883#2E1883

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

Color values

HEX#2E1883
RGBrgb(46, 24, 131)
HSLhsl(252, 69%, 30%)
HSVhsv(252, 82%, 51%)
CMYKcmyk(64.9%, 81.7%, 0%, 48.6%)
CIE-LABlab(19.53, 40.84, -55.63)
CIE-LCHlch(19.53, 69.01, 306.28°)
OKLaboklab(32.46% 0.0331 -0.1605)
OKLCHoklch(32.46% 0.164 281.6)
XYZxyz(5.5488, 2.8724, 21.7304)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1883 #6D8318
analogous
#183883 #2E1883 #631883
triadic
#2E1883 #832E18 #18832E
tetradic
#2E1883 #831838 #6D8318 #188363
square
#2E1883 #831838 #6D8318 #188363
split-complementary
#2E1883 #836318 #388318
monochromatic
#0A051C #1C0F4F #2E1883 #4021B7 #5B3ADB

Accessibility & contrast

On white

13.34
#2E1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1883
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1883#FFFFFF#000000##FFFFFF
##2E18831.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1883;
/* rgb */ color: rgb(46, 24, 131);
/* oklch */ color: oklch(32.5% 0.164 281.6);
Tailwind
colors: {
  custom: {
    50: '#7359a8',
    500: '#2e1883',
    950: '#000000',
  },
}
SCSS
$custom: #2e1883;
$custom-light: #7359a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1883",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 252.336,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3246,
    "c": 0.16387,
    "h": 281.6
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#2E1883
secondary
#9FB740
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1883

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

Preview Lab → · Contrast checker → · Palette generator →

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