#3E2A95#3E2A95

#3E2A95 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.165 H 283.9°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#3E2A95
RGBrgb(62, 42, 149)
HSLhsl(251, 56%, 37%)
HSVhsv(251, 72%, 58%)
CMYKcmyk(58.4%, 71.8%, 0%, 41.6%)
CIE-LABlab(26.30, 38.94, -55.64)
CIE-LCHlch(26.30, 67.91, 304.98°)
OKLaboklab(38.16% 0.0397 -0.1602)
OKLCHoklch(38.16% 0.165 283.9)
XYZxyz(8.2377, 4.8495, 28.9299)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A95 #81952A
analogous
#2A4B95 #3E2A95 #742A95
triadic
#3E2A95 #953E2A #2A953E
tetradic
#3E2A95 #952A4B #81952A #2A9574
square
#3E2A95 #952A4B #81952A #2A9574
split-complementary
#3E2A95 #95742A #4B952A
monochromatic
#160F36 #2A1D65 #3E2A95 #5237C5 #7A66D4

Accessibility & contrast

On white

10.66
#3E2A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E2A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A95
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A95#FFFFFF#000000##FFFFFF
##3E2A951.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003B93
Tritanopia (blue-blind)
#0F475C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2a95;
/* rgb */ color: rgb(62, 42, 149);
/* oklch */ color: oklch(38.2% 0.165 283.9);
Tailwind
colors: {
  custom: {
    50: '#7d65b5',
    500: '#3e2a95',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a95;
$custom-light: #7d65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a95",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 149
  },
  "hsl": {
    "h": 251.215,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3816,
    "c": 0.16502,
    "h": 283.9
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#3E2A95
secondary
#A9BA61
accent
#DF48C3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2A95

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

Preview Lab → · Contrast checker → · Palette generator →

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