#3E2C8C#3E2C8C

#3E2C8C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.151 H 285.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3E2C8C
RGBrgb(62, 44, 140)
HSLhsl(251, 52%, 36%)
HSVhsv(251, 69%, 55%)
CMYKcmyk(55.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(25.92, 34.91, -50.71)
CIE-LCHlch(25.92, 61.57, 304.55°)
OKLaboklab(37.63% 0.0394 -0.1457)
OKLCHoklch(37.63% 0.151 285.1)
XYZxyz(7.6195, 4.7185, 25.3151)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2C8C #7A8C2C
analogous
#2C4A8C #3E2C8C #6E2C8C
triadic
#3E2C8C #8C3E2C #2C8C3E
tetradic
#3E2C8C #8C2C4A #7A8C2C #2C8C6E
square
#3E2C8C #8C2C4A #7A8C2C #2C8C6E
split-complementary
#3E2C8C #8C6E2C #4A8C2C
monochromatic
#150F2F #291D5D #3E2C8C #533BBB #7864CE

Accessibility & contrast

On white

10.80
#3E2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2C8C
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2C8C#FFFFFF#000000##FFFFFF
##3E2C8C1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#1C4458
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2c8c;
/* rgb */ color: rgb(62, 44, 140);
/* oklch */ color: oklch(37.6% 0.151 285.1);
Tailwind
colors: {
  custom: {
    50: '#7c66ae',
    500: '#3e2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #3e2c8c;
$custom-light: #7c66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2c8c",
  "rgb": {
    "r": 62,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 251.25,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37634,
    "c": 0.15096,
    "h": 285.1
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#3E2C8C
secondary
#A5B55F
accent
#DC4CC1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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