#3E2780#3E2780

#3E2780 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.142 H 289.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#3E2780
RGBrgb(62, 39, 128)
HSLhsl(256, 53%, 33%)
HSVhsv(256, 70%, 50%)
CMYKcmyk(51.6%, 69.5%, 0%, 49.8%)
CIE-LABlab(23.78, 34.12, -46.69)
CIE-LCHlch(23.78, 57.82, 306.16°)
OKLaboklab(35.77% 0.0463 -0.1339)
OKLCHoklch(35.77% 0.142 289.1)
XYZxyz(6.6073, 4.0334, 20.8483)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2780 #698027
analogous
#273C80 #3E2780 #6B2780
triadic
#3E2780 #803E27 #27803E
tetradic
#3E2780 #80273C #698027 #27806B
square
#3E2780 #80273C #698027 #27806B
split-complementary
#3E2780 #806B27 #3C8027
monochromatic
#110A22 #271951 #3E2780 #5535AF #7456CB

Accessibility & contrast

On white

11.62
#3E2780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3E2780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2780
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2780#FFFFFF#000000##FFFFFF
##3E27801.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#273D50
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e2780;
/* rgb */ color: rgb(62, 39, 128);
/* oklch */ color: oklch(35.8% 0.142 289.1);
Tailwind
colors: {
  custom: {
    50: '#7a63a6',
    500: '#3e2780',
    950: '#000000',
  },
}
SCSS
$custom: #3e2780;
$custom-light: #7a63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2780",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 255.506,
    "s": 53.293,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.14166,
    "h": 289.1
  },
  "luminance": 0.04034
}

Semantic roles & 50–950 ramp

primary
#3E2780
secondary
#98B053
accent
#DD4BB7
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3E2780

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

Preview Lab → · Contrast checker → · Palette generator →

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