#3E2A8D#3E2A8D

#3E2A8D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.155 H 285.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3E2A8D
RGBrgb(62, 42, 141)
HSLhsl(252, 54%, 36%)
HSVhsv(252, 70%, 55%)
CMYKcmyk(56%, 70.2%, 0%, 44.7%)
CIE-LABlab(25.57, 36.42, -51.90)
CIE-LCHlch(25.57, 63.40, 305.06°)
OKLaboklab(37.41% 0.0412 -0.1492)
OKLCHoklch(37.41% 0.155 285.4)
XYZxyz(7.6208, 4.6027, 25.6810)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2A8D #798D2A
analogous
#2A478D #3E2A8D #6F2A8D
triadic
#3E2A8D #8D3E2A #2A8D3E
tetradic
#3E2A8D #8D2A47 #798D2A #2A8D6F
square
#3E2A8D #8D2A47 #798D2A #2A8D6F
split-complementary
#3E2A8D #8D6F2A #478D2A
monochromatic
#150E2F #291C5E #3E2A8D #5338BC #7861D0

Accessibility & contrast

On white

10.93
#3E2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2A8D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2A8D#FFFFFF#000000##FFFFFF
##3E2A8D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#1B4458
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2a8d;
/* rgb */ color: rgb(62, 42, 141);
/* oklch */ color: oklch(37.4% 0.155 285.4);
Tailwind
colors: {
  custom: {
    50: '#7c65af',
    500: '#3e2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #3e2a8d;
$custom-light: #7c65af;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2a8d",
  "rgb": {
    "r": 62,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 252.121,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37413,
    "c": 0.15476,
    "h": 285.4
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#3E2A8D
secondary
#A4B65D
accent
#DD4AC0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3E2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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