#3E2B8E#3E2B8E

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

Color values

HEX#3E2B8E
RGBrgb(62, 43, 142)
HSLhsl(252, 54%, 36%)
HSVhsv(252, 70%, 56%)
CMYKcmyk(56.3%, 69.7%, 0%, 44.3%)
CIE-LABlab(25.88, 36.15, -52.02)
CIE-LCHlch(25.88, 63.34, 304.79°)
OKLaboklab(37.66% 0.0401 -0.1496)
OKLCHoklch(37.66% 0.155 285)
XYZxyz(7.7315, 4.7044, 26.0866)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B8E #7B8E2B
analogous
#2B4A8E #3E2B8E #702B8E
triadic
#3E2B8E #8E3E2B #2B8E3E
tetradic
#3E2B8E #8E2B4A #7B8E2B #2B8E70
square
#3E2B8E #8E2B4A #7B8E2B #2B8E70
split-complementary
#3E2B8E #8E702B #4A8E2B
monochromatic
#150F30 #291D5F #3E2B8E #5339BD #7863D0

Accessibility & contrast

On white

10.82
#3E2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E2B8E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B8E#FFFFFF#000000##FFFFFF
##3E2B8E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#1A4459
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2b8e;
/* rgb */ color: rgb(62, 43, 142);
/* oklch */ color: oklch(37.7% 0.155 285.0);
Tailwind
colors: {
  custom: {
    50: '#7c66b0',
    500: '#3e2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b8e;
$custom-light: #7c66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b8e",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 251.515,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37659,
    "c": 0.15483,
    "h": 285
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#3E2B8E
secondary
#A5B65F
accent
#DD4BC1
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3E2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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