#3E2D8A#3E2D8A

#3E2D8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.147 H 285.3°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3E2D8A
RGBrgb(62, 45, 138)
HSLhsl(251, 51%, 36%)
HSVhsv(251, 67%, 54%)
CMYKcmyk(55.1%, 67.4%, 0%, 45.9%)
CIE-LABlab(25.97, 33.67, -49.38)
CIE-LCHlch(25.97, 59.77, 304.29°)
OKLaboklab(37.62% 0.0387 -0.1418)
OKLCHoklch(37.62% 0.147 285.3)
XYZxyz(7.5111, 4.7355, 24.5581)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D8A #798A2D
analogous
#2D4A8A #3E2D8A #6C2D8A
triadic
#3E2D8A #8A3E2D #2D8A3E
tetradic
#3E2D8A #8A2D4A #798A2D #2D8A6C
square
#3E2D8A #8A2D4A #798A2D #2D8A6C
split-complementary
#3E2D8A #8A6C2D #4A8A2D
monochromatic
#150F2E #291E5C #3E2D8A #533CB8 #7865CD

Accessibility & contrast

On white

10.78
#3E2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D8A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D8A#FFFFFF#000000##FFFFFF
##3E2D8A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#1E4457
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2d8a;
/* rgb */ color: rgb(62, 45, 138);
/* oklch */ color: oklch(37.6% 0.147 285.3);
Tailwind
colors: {
  custom: {
    50: '#7b67ad',
    500: '#3e2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d8a;
$custom-light: #7b67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d8a",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 250.968,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37617,
    "c": 0.14702,
    "h": 285.3
  },
  "luminance": 0.04736
}

Semantic roles & 50–950 ramp

primary
#3E2D8A
secondary
#A4B360
accent
#DA4DC1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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