#3E2A8A#3E2A8A

#3E2A8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.151 H 286.0°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#3E2A8A
RGBrgb(62, 42, 138)
HSLhsl(253, 53%, 35%)
HSVhsv(253, 70%, 54%)
CMYKcmyk(55.1%, 69.6%, 0%, 45.9%)
CIE-LABlab(25.30, 35.47, -50.47)
CIE-LCHlch(25.30, 61.69, 305.10°)
OKLaboklab(37.14% 0.0417 -0.145)
OKLCHoklch(37.14% 0.151 286)
XYZxyz(7.4006, 4.5146, 24.5213)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A8A #768A2A
analogous
#2A468A #3E2A8A #6E2A8A
triadic
#3E2A8A #8A3E2A #2A8A3E
tetradic
#3E2A8A #8A2A46 #768A2A #2A8A6E
square
#3E2A8A #8A2A46 #768A2A #2A8A6E
split-complementary
#3E2A8A #8A6E2A #468A2A
monochromatic
#140D2C #291C5B #3E2A8A #5338B9 #7760CF

Accessibility & contrast

On white

11.04
#3E2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A8A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A8A#FFFFFF#000000##FFFFFF
##3E2A8A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e2a8a;
/* rgb */ color: rgb(62, 42, 138);
/* oklch */ color: oklch(37.1% 0.151 286.0);
Tailwind
colors: {
  custom: {
    50: '#7b65ad',
    500: '#3e2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a8a;
$custom-light: #7b65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a8a",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 252.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37139,
    "c": 0.15087,
    "h": 286
  },
  "luminance": 0.04515
}

Semantic roles & 50–950 ramp

primary
#3E2A8A
secondary
#A2B45B
accent
#DD4BBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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