#3E2D7B#3E2D7B

#3E2D7B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.3% C 0.127 H 288.5°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E2D7B
RGBrgb(62, 45, 123)
HSLhsl(253, 46%, 33%)
HSVhsv(253, 63%, 48%)
CMYKcmyk(49.6%, 63.4%, 0%, 51.8%)
CIE-LABlab(24.74, 28.87, -41.97)
CIE-LCHlch(24.74, 50.95, 304.52°)
OKLaboklab(36.34% 0.0402 -0.12)
OKLCHoklch(36.34% 0.127 288.5)
XYZxyz(6.4991, 4.3307, 19.2285)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2D7B #6A7B2D
analogous
#2D437B #3E2D7B #652D7B
triadic
#3E2D7B #7B3E2D #2D7B3E
tetradic
#3E2D7B #7B2D43 #6A7B2D #2D7B65
square
#3E2D7B #7B2D43 #6A7B2D #2D7B65
split-complementary
#3E2D7B #7B652D #437B2D
monochromatic
#110C21 #271D4E #3E2D7B #553DA8 #745EC4

Accessibility & contrast

On white

11.25
#3E2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2D7B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2D7B#FFFFFF#000000##FFFFFF
##3E2D7B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#2A3F4F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e2d7b;
/* rgb */ color: rgb(62, 45, 123);
/* oklch */ color: oklch(36.3% 0.127 288.5);
Tailwind
colors: {
  custom: {
    50: '#7967a2',
    500: '#3e2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e2d7b;
$custom-light: #7967a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2d7b",
  "rgb": {
    "r": 62,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 253.077,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36335,
    "c": 0.12658,
    "h": 288.5
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#3E2D7B
secondary
#99AB59
accent
#D652B9
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3E2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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