#2E1885#2E1885

#2E1885 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.166 H 281.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2E1885
RGBrgb(46, 24, 133)
HSLhsl(252, 69%, 31%)
HSVhsv(252, 82%, 52%)
CMYKcmyk(65.4%, 82%, 0%, 47.8%)
CIE-LABlab(19.75, 41.45, -56.52)
CIE-LCHlch(19.75, 70.09, 306.26°)
OKLaboklab(32.68% 0.0324 -0.1631)
OKLCHoklch(32.68% 0.166 281.2)
XYZxyz(5.6857, 2.9271, 22.4511)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1885 #6F8518
analogous
#183885 #2E1885 #641885
triadic
#2E1885 #852E18 #18852E
tetradic
#2E1885 #851838 #6F8518 #188564
square
#2E1885 #851838 #6F8518 #188564
split-complementary
#2E1885 #856418 #388518
monochromatic
#0A051D #1C0F51 #2E1885 #4021B9 #5C3CDC

Accessibility & contrast

On white

13.24
#2E1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1885
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1885#FFFFFF#000000##FFFFFF
##2E18851.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1885;
/* rgb */ color: rgb(46, 24, 133);
/* oklch */ color: oklch(32.7% 0.166 281.2);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2e1885',
    950: '#000000',
  },
}
SCSS
$custom: #2e1885;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1885",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 252.11,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.16628,
    "h": 281.2
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#2E1885
secondary
#A0B940
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1885

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

Preview Lab → · Contrast checker → · Palette generator →

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