#3E2992#3E2992

#3E2992 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.162 H 284.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3E2992
RGBrgb(62, 41, 146)
HSLhsl(252, 56%, 37%)
HSVhsv(252, 72%, 57%)
CMYKcmyk(57.5%, 71.9%, 0%, 42.7%)
CIE-LABlab(25.82, 38.57, -54.59)
CIE-LCHlch(25.82, 66.84, 305.24°)
OKLaboklab(37.73% 0.0411 -0.1571)
OKLCHoklch(37.73% 0.162 284.7)
XYZxyz(7.9663, 4.6849, 27.6731)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2992 #7D9229
analogous
#294992 #3E2992 #732992
triadic
#3E2992 #923E29 #29923E
tetradic
#3E2992 #922949 #7D9229 #299273
square
#3E2992 #922949 #7D9229 #299273
split-complementary
#3E2992 #927329 #499229
monochromatic
#150E32 #2A1C62 #3E2992 #5236C2 #7962D3

Accessibility & contrast

On white

10.84
#3E2992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E2992 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2992
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2992#FFFFFF#000000##FFFFFF
##3E29921.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#003A90
Tritanopia (blue-blind)
#15455A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2992;
/* rgb */ color: rgb(62, 41, 146);
/* oklch */ color: oklch(37.7% 0.162 284.7);
Tailwind
colors: {
  custom: {
    50: '#7d65b3',
    500: '#3e2992',
    950: '#000000',
  },
}
SCSS
$custom: #3e2992;
$custom-light: #7d65b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2992",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 146
  },
  "hsl": {
    "h": 252,
    "s": 56.15,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37729,
    "c": 0.16238,
    "h": 284.7
  },
  "luminance": 0.04685
}

Semantic roles & 50–950 ramp

primary
#3E2992
secondary
#A7B95E
accent
#DF48C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2992

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

Preview Lab → · Contrast checker → · Palette generator →

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