#3E2A8B#3E2A8B

#3E2A8B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.152 H 285.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3E2A8B
RGBrgb(62, 42, 139)
HSLhsl(252, 54%, 35%)
HSVhsv(252, 70%, 55%)
CMYKcmyk(55.4%, 69.8%, 0%, 45.5%)
CIE-LABlab(25.39, 35.79, -50.94)
CIE-LCHlch(25.39, 62.26, 305.09°)
OKLaboklab(37.23% 0.0415 -0.1464)
OKLCHoklch(37.23% 0.152 285.8)
XYZxyz(7.4734, 4.5437, 24.9043)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A8B #778B2A
analogous
#2A468B #3E2A8B #6E2A8B
triadic
#3E2A8B #8B3E2A #2A8B3E
tetradic
#3E2A8B #8B2A46 #778B2A #2A8B6E
square
#3E2A8B #8B2A46 #778B2A #2A8B6E
split-complementary
#3E2A8B #8B6E2A #468B2A
monochromatic
#140E2D #291C5C #3E2A8B #5338BA #7760CF

Accessibility & contrast

On white

11.00
#3E2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A8B
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A8B#FFFFFF#000000##FFFFFF
##3E2A8B1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#1D4357
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2a8b;
/* rgb */ color: rgb(62, 42, 139);
/* oklch */ color: oklch(37.2% 0.152 285.8);
Tailwind
colors: {
  custom: {
    50: '#7c65ae',
    500: '#3e2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a8b;
$custom-light: #7c65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a8b",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 252.371,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.15217,
    "h": 285.8
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#3E2A8B
secondary
#A3B55C
accent
#DD4BBF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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