#2E1985#2E1985

#2E1985 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.165 H 281.1°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1985
RGBrgb(46, 25, 133)
HSLhsl(252, 68%, 31%)
HSVhsv(252, 81%, 52%)
CMYKcmyk(65.4%, 81.2%, 0%, 47.8%)
CIE-LABlab(19.92, 40.96, -56.24)
CIE-LCHlch(19.92, 69.57, 306.07°)
OKLaboklab(32.8% 0.0319 -0.1623)
OKLCHoklch(32.8% 0.165 281.1)
XYZxyz(5.7066, 2.9691, 22.4581)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1985 #708519
analogous
#193A85 #2E1985 #641985
triadic
#2E1985 #852E19 #19852E
tetradic
#2E1985 #85193A #708519 #198564
square
#2E1985 #85193A #708519 #198564
split-complementary
#2E1985 #856419 #3A8519
monochromatic
#0A061E #1C0F51 #2E1985 #4023B9 #5C3EDB

Accessibility & contrast

On white

13.17
#2E1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1985
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1985#FFFFFF#000000##FFFFFF
##2E19851.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1985;
/* rgb */ color: rgb(46, 25, 133);
/* oklch */ color: oklch(32.8% 0.165 281.1);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2e1985',
    950: '#000000',
  },
}
SCSS
$custom: #2e1985;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1985",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 251.667,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.328,
    "c": 0.16539,
    "h": 281.1
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#2E1985
secondary
#A1B941
accent
#EB3DC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1985

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

Preview Lab → · Contrast checker → · Palette generator →

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