#3E2A80#3E2A80

#3E2A80 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.3% C 0.138 H 288.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3E2A80
RGBrgb(62, 42, 128)
HSLhsl(254, 51%, 33%)
HSVhsv(254, 67%, 50%)
CMYKcmyk(51.6%, 67.2%, 0%, 49.8%)
CIE-LABlab(24.44, 32.32, -45.61)
CIE-LCHlch(24.44, 55.90, 305.32°)
OKLaboklab(36.25% 0.0431 -0.1307)
OKLCHoklch(36.25% 0.138 288.2)
XYZxyz(6.7097, 4.2383, 20.8824)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A80 #6C802A
analogous
#2A4180 #3E2A80 #692A80
triadic
#3E2A80 #803E2A #2A803E
tetradic
#3E2A80 #802A41 #6C802A #2A8069
square
#3E2A80 #802A41 #6C802A #2A8069
split-complementary
#3E2A80 #80692A #41802A
monochromatic
#110C24 #281B52 #3E2A80 #5439AE #755BC9

Accessibility & contrast

On white

11.36
#3E2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A80
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A80#FFFFFF#000000##FFFFFF
##3E2A801.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#273F51
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2a80;
/* rgb */ color: rgb(62, 42, 128);
/* oklch */ color: oklch(36.3% 0.138 288.2);
Tailwind
colors: {
  custom: {
    50: '#7a65a6',
    500: '#3e2a80',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a80;
$custom-light: #7a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a80",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 253.953,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36251,
    "c": 0.13764,
    "h": 288.2
  },
  "luminance": 0.04239
}

Semantic roles & 50–950 ramp

primary
#3E2A80
secondary
#9AAF57
accent
#DA4EB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3E2A80

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

Preview Lab → · Contrast checker → · Palette generator →

#3E2A80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva