#3E1878#3E1878

#3E1878 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.150 H 294.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3E1878
RGBrgb(62, 24, 120)
HSLhsl(264, 67%, 28%)
HSVhsv(264, 80%, 47%)
CMYKcmyk(48.3%, 80%, 0%, 52.9%)
CIE-LABlab(20.18, 39.81, -47.50)
CIE-LCHlch(20.18, 61.97, 309.97°)
OKLaboklab(32.99% 0.0625 -0.1362)
OKLCHoklch(32.99% 0.15 294.6)
XYZxyz(5.7025, 3.0333, 18.0507)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1878 #527818
analogous
#182278 #3E1878 #6E1878
triadic
#3E1878 #783E18 #18783E
tetradic
#3E1878 #781822 #527818 #18786E
square
#3E1878 #781822 #527818 #18786E
split-complementary
#3E1878 #786E18 #227818
monochromatic
#0D051A #240E45 #3E1878 #5822AB #7434D6

Accessibility & contrast

On white

13.07
#3E1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1878
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1878#FFFFFF#000000##FFFFFF
##3E18781.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002F76
Tritanopia (blue-blind)
#2D3247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1878;
/* rgb */ color: rgb(62, 24, 120);
/* oklch */ color: oklch(33.0% 0.150 294.6);
Tailwind
colors: {
  custom: {
    50: '#7a5aa0',
    500: '#3e1878',
    950: '#000000',
  },
}
SCSS
$custom: #3e1878;
$custom-light: #7a5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1878",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 263.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32991,
    "c": 0.14984,
    "h": 294.6
  },
  "luminance": 0.03033
}

Semantic roles & 50–950 ramp

primary
#3E1878
secondary
#81AD3F
accent
#EA3EA6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1878

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

Preview Lab → · Contrast checker → · Palette generator →

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