#3E2B78#3E2B78

#3E2B78 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.7% C 0.125 H 289.9°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#3E2B78
RGBrgb(62, 43, 120)
HSLhsl(255, 47%, 32%)
HSVhsv(255, 64%, 47%)
CMYKcmyk(48.3%, 64.2%, 0%, 52.9%)
CIE-LABlab(24.02, 29.18, -41.22)
CIE-LCHlch(24.02, 50.51, 305.30°)
OKLaboklab(35.74% 0.0427 -0.1178)
OKLCHoklch(35.74% 0.125 289.9)
XYZxyz(6.2397, 4.1077, 18.2298)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B78 #65782B
analogous
#2B3F78 #3E2B78 #652B78
triadic
#3E2B78 #783E2B #2B783E
tetradic
#3E2B78 #782B3F #65782B #2B7865
square
#3E2B78 #782B3F #65782B #2B7865
split-complementary
#3E2B78 #78652B #3F782B
monochromatic
#0F0B1E #271B4B #3E2B78 #553BA5 #745AC4

Accessibility & contrast

On white

11.53
#3E2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3E2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B78
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B78#FFFFFF#000000##FFFFFF
##3E2B781.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#2C3D4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e2b78;
/* rgb */ color: rgb(62, 43, 120);
/* oklch */ color: oklch(35.7% 0.125 289.9);
Tailwind
colors: {
  custom: {
    50: '#7865a0',
    500: '#3e2b78',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b78;
$custom-light: #7865a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b78",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 254.805,
    "s": 47.239,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.12534,
    "h": 289.9
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#3E2B78
secondary
#95AA55
accent
#D751B6
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060F
muted
#7B7A7E

Preview Lab

Preview with #3E2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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