#3E27A2#3E27A2

#3E27A2 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.184 H 282.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#3E27A2
RGBrgb(62, 39, 162)
HSLhsl(251, 61%, 39%)
HSVhsv(251, 76%, 64%)
CMYKcmyk(61.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(26.97, 44.62, -62.48)
CIE-LCHlch(26.97, 76.78, 305.53°)
OKLaboklab(39.02% 0.0391 -0.1802)
OKLCHoklch(39.02% 0.184 282.2)
XYZxyz(9.2317, 5.0832, 34.6701)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E27A2 #8BA227
analogous
#274DA2 #3E27A2 #7C27A2
triadic
#3E27A2 #A23E27 #27A23E
tetradic
#3E27A2 #A2274D #8BA227 #27A27C
square
#3E27A2 #A2274D #8BA227 #27A27C
split-complementary
#3E27A2 #A27C27 #4DA227
monochromatic
#180F3F #2B1B71 #3E27A2 #5437CF #7E69DB

Accessibility & contrast

On white

10.41
#3E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3E27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E27A2
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E27A2#FFFFFF#000000##FFFFFF
##3E27A21.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003BA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e27a2;
/* rgb */ color: rgb(62, 39, 162);
/* oklch */ color: oklch(39.0% 0.184 282.2);
Tailwind
colors: {
  custom: {
    50: '#8064bf',
    500: '#3e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #3e27a2;
$custom-light: #8064bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e27a2",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 251.22,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39015,
    "c": 0.18437,
    "h": 282.2
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#3E27A2
secondary
#B0C164
accent
#E443C6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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