#3E2A7D#3E2A7D

#3E2A7D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.0% C 0.134 H 289.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#3E2A7D
RGBrgb(62, 42, 125)
HSLhsl(254, 50%, 33%)
HSVhsv(254, 66%, 49%)
CMYKcmyk(50.4%, 66.4%, 0%, 51%)
CIE-LABlab(24.20, 31.37, -44.12)
CIE-LCHlch(24.20, 54.14, 305.42°)
OKLaboklab(35.99% 0.0434 -0.1263)
OKLCHoklch(35.99% 0.134 289)
XYZxyz(6.5152, 4.1605, 19.8578)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A7D #697D2A
analogous
#2A3F7D #3E2A7D #682A7D
triadic
#3E2A7D #7D3E2A #2A7D3E
tetradic
#3E2A7D #7D2A3F #697D2A #2A7D68
square
#3E2A7D #7D2A3F #697D2A #2A7D68
split-complementary
#3E2A7D #7D682A #3F7D2A
monochromatic
#110B21 #271B4F #3E2A7D #5539AB #745AC8

Accessibility & contrast

On white

11.46
#3E2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A7D
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A7D#FFFFFF#000000##FFFFFF
##3E2A7D1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#293E4F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e2a7d;
/* rgb */ color: rgb(62, 42, 125);
/* oklch */ color: oklch(36.0% 0.134 289.0);
Tailwind
colors: {
  custom: {
    50: '#7965a3',
    500: '#3e2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a7d;
$custom-light: #7965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a7d",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 254.458,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35992,
    "c": 0.1336,
    "h": 289
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#3E2A7D
secondary
#98AD56
accent
#D94FB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3E2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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