#3E2B8A#3E2B8A

#3E2B8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.150 H 285.8°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#3E2B8A
RGBrgb(62, 43, 138)
HSLhsl(252, 52%, 35%)
HSVhsv(252, 69%, 54%)
CMYKcmyk(55.1%, 68.8%, 0%, 45.9%)
CIE-LABlab(25.52, 34.88, -50.11)
CIE-LCHlch(25.52, 61.05, 304.84°)
OKLaboklab(37.3% 0.0407 -0.144)
OKLCHoklch(37.3% 0.15 285.8)
XYZxyz(7.4366, 4.5865, 24.5333)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B8A #778A2B
analogous
#2B478A #3E2B8A #6D2B8A
triadic
#3E2B8A #8A3E2B #2B8A3E
tetradic
#3E2B8A #8A2B47 #778A2B #2B8A6D
square
#3E2B8A #8A2B47 #778A2B #2B8A6D
split-complementary
#3E2B8A #8A6D2B #478A2B
monochromatic
#140E2D #291C5B #3E2B8A #533AB9 #7761CE

Accessibility & contrast

On white

10.95
#3E2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B8A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B8A#FFFFFF#000000##FFFFFF
##3E2B8A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#1E4356
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2b8a;
/* rgb */ color: rgb(62, 43, 138);
/* oklch */ color: oklch(37.3% 0.150 285.8);
Tailwind
colors: {
  custom: {
    50: '#7b66ad',
    500: '#3e2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b8a;
$custom-light: #7b66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b8a",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 252,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37296,
    "c": 0.1496,
    "h": 285.8
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#3E2B8A
secondary
#A3B45D
accent
#DC4CBF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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