#3E2A9A#3E2A9A

#3E2A9A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.6% C 0.171 H 283.0°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#3E2A9A
RGBrgb(62, 42, 154)
HSLhsl(251, 57%, 38%)
HSVhsv(251, 73%, 60%)
CMYKcmyk(59.7%, 72.7%, 0%, 39.6%)
CIE-LABlab(26.77, 40.51, -57.94)
CIE-LCHlch(26.77, 70.70, 304.96°)
OKLaboklab(38.64% 0.0387 -0.1669)
OKLCHoklch(38.64% 0.171 283)
XYZxyz(8.6455, 5.0126, 31.0775)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A9A #869A2A
analogous
#2A4E9A #3E2A9A #762A9A
triadic
#3E2A9A #9A3E2A #2A9A3E
tetradic
#3E2A9A #9A2A4E #869A2A #2A9A76
square
#3E2A9A #9A2A4E #869A2A #2A9A76
split-complementary
#3E2A9A #9A762A #4E9A2A
monochromatic
#17103A #2B1D6A #3E2A9A #5238C9 #7C68D6

Accessibility & contrast

On white

10.49
#3E2A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E2A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A9A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A9A#FFFFFF#000000##FFFFFF
##3E2A9A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#03485F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e2a9a;
/* rgb */ color: rgb(62, 42, 154);
/* oklch */ color: oklch(38.6% 0.171 283.0);
Tailwind
colors: {
  custom: {
    50: '#7e66b9',
    500: '#3e2a9a',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a9a;
$custom-light: #7e66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a9a",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 250.714,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38637,
    "c": 0.17133,
    "h": 283
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#3E2A9A
secondary
#ACBC63
accent
#E047C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E2A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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