#3E27A4#3E27A4

#3E27A4 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.187 H 281.9°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#3E27A4
RGBrgb(62, 39, 164)
HSLhsl(251, 62%, 40%)
HSVhsv(251, 76%, 64%)
CMYKcmyk(62.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(27.17, 45.23, -63.37)
CIE-LCHlch(27.17, 77.85, 305.52°)
OKLaboklab(39.22% 0.0386 -0.1828)
OKLCHoklch(39.22% 0.187 281.9)
XYZxyz(9.4109, 5.1548, 35.6138)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E27A4 #8DA427
analogous
#274FA4 #3E27A4 #7D27A4
triadic
#3E27A4 #A43E27 #27A43E
tetradic
#3E27A4 #A4274F #8DA427 #27A47D
square
#3E27A4 #A4274F #8DA427 #27A47D
split-complementary
#3E27A4 #A47D27 #4FA427
monochromatic
#190F41 #2B1B73 #3E27A4 #5438D0 #7F6ADC

Accessibility & contrast

On white

10.34
#3E27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#3E27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E27A4
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E27A4#FFFFFF#000000##FFFFFF
##3E27A41.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#003CA2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e27a4;
/* rgb */ color: rgb(62, 39, 164);
/* oklch */ color: oklch(39.2% 0.187 281.9);
Tailwind
colors: {
  custom: {
    50: '#8064c0',
    500: '#3e27a4',
    950: '#000000',
  },
}
SCSS
$custom: #3e27a4;
$custom-light: #8064c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e27a4",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 251.04,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39217,
    "c": 0.18678,
    "h": 281.9
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#3E27A4
secondary
#B1C265
accent
#E543C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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