#2E1A85#2E1A85

#2E1A85 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.164 H 281.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1A85
RGBrgb(46, 26, 133)
HSLhsl(251, 67%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(65.4%, 80.5%, 0%, 47.8%)
CIE-LABlab(20.09, 40.46, -55.95)
CIE-LCHlch(20.09, 69.04, 305.87°)
OKLaboklab(32.92% 0.0313 -0.1615)
OKLCHoklch(32.92% 0.164 281)
XYZxyz(5.7284, 3.0126, 22.4654)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A85 #71851A
analogous
#1A3B85 #2E1A85 #631A85
triadic
#2E1A85 #852E1A #1A852E
tetradic
#2E1A85 #851A3B #71851A #1A8563
square
#2E1A85 #851A3B #71851A #1A8563
split-complementary
#2E1A85 #85631A #3B851A
monochromatic
#0B061F #1C1052 #2E1A85 #4024B8 #5D40DA

Accessibility & contrast

On white

13.10
#2E1A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2E1A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A85
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A85#FFFFFF#000000##FFFFFF
##2E1A851.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1a85;
/* rgb */ color: rgb(46, 26, 133);
/* oklch */ color: oklch(32.9% 0.164 281.0);
Tailwind
colors: {
  custom: {
    50: '#745aaa',
    500: '#2e1a85',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a85;
$custom-light: #745aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a85",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 133
  },
  "hsl": {
    "h": 251.215,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32922,
    "c": 0.16446,
    "h": 281
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#2E1A85
secondary
#A2B842
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1A85

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

Preview Lab → · Contrast checker → · Palette generator →

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