#3E2995#3E2995

#3E2995 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.166 H 284.1°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3E2995
RGBrgb(62, 41, 149)
HSLhsl(252, 57%, 37%)
HSVhsv(252, 72%, 58%)
CMYKcmyk(58.4%, 72.5%, 0%, 41.6%)
CIE-LABlab(26.10, 39.51, -55.98)
CIE-LCHlch(26.10, 68.51, 305.21°)
OKLaboklab(38.01% 0.0405 -0.1612)
OKLCHoklch(38.01% 0.166 284.1)
XYZxyz(8.2027, 4.7794, 28.9182)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2995 #809529
analogous
#294A95 #3E2995 #742995
triadic
#3E2995 #953E29 #29953E
tetradic
#3E2995 #95294A #809529 #299574
square
#3E2995 #95294A #809529 #299574
split-complementary
#3E2995 #957429 #4A9529
monochromatic
#160F35 #2A1C65 #3E2995 #5236C5 #7A64D4

Accessibility & contrast

On white

10.74
#3E2995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3E2995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2995
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2995#FFFFFF#000000##FFFFFF
##3E29951.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#10465C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e2995;
/* rgb */ color: rgb(62, 41, 149);
/* oklch */ color: oklch(38.0% 0.166 284.1);
Tailwind
colors: {
  custom: {
    50: '#7d65b5',
    500: '#3e2995',
    950: '#000000',
  },
}
SCSS
$custom: #3e2995;
$custom-light: #7d65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2995",
  "rgb": {
    "r": 62,
    "g": 41,
    "b": 149
  },
  "hsl": {
    "h": 251.667,
    "s": 56.842,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38014,
    "c": 0.16618,
    "h": 284.1
  },
  "luminance": 0.0478
}

Semantic roles & 50–950 ramp

primary
#3E2995
secondary
#A9BA60
accent
#E048C2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #3E2995

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

Preview Lab → · Contrast checker → · Palette generator →

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