#3E2B7D#3E2B7D

#3E2B7D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.132 H 288.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#3E2B7D
RGBrgb(62, 43, 125)
HSLhsl(254, 49%, 33%)
HSVhsv(254, 66%, 49%)
CMYKcmyk(50.4%, 65.6%, 0%, 51%)
CIE-LABlab(24.43, 30.76, -43.74)
CIE-LCHlch(24.43, 53.48, 305.11°)
OKLaboklab(36.16% 0.0423 -0.1252)
OKLCHoklch(36.16% 0.132 288.7)
XYZxyz(6.5511, 4.2323, 19.8698)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B7D #6A7D2B
analogous
#2B417D #3E2B7D #672B7D
triadic
#3E2B7D #7D3E2B #2B7D3E
tetradic
#3E2B7D #7D2B41 #6A7D2B #2B7D67
square
#3E2B7D #7D2B41 #6A7D2B #2B7D67
split-complementary
#3E2B7D #7D672B #417D2B
monochromatic
#110C22 #271B4F #3E2B7D #553BAB #745CC7

Accessibility & contrast

On white

11.37
#3E2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B7D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B7D#FFFFFF#000000##FFFFFF
##3E2B7D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#293F50
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2b7d;
/* rgb */ color: rgb(62, 43, 125);
/* oklch */ color: oklch(36.2% 0.132 288.7);
Tailwind
colors: {
  custom: {
    50: '#7965a3',
    500: '#3e2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b7d;
$custom-light: #7965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b7d",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 253.902,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.1322,
    "h": 288.7
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#3E2B7D
secondary
#99AD57
accent
#D84FB9
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #3E2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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