#3E27A6#3E27A6

#3E27A6 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.189 H 281.6°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3E27A6
RGBrgb(62, 39, 166)
HSLhsl(251, 62%, 40%)
HSVhsv(251, 77%, 65%)
CMYKcmyk(62.7%, 76.5%, 0%, 34.9%)
CIE-LABlab(27.37, 45.84, -64.24)
CIE-LCHlch(27.37, 78.92, 305.51°)
OKLaboklab(39.42% 0.038 -0.1853)
OKLCHoklch(39.42% 0.189 281.6)
XYZxyz(9.5929, 5.2276, 36.5725)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E27A6 #8FA627
analogous
#2750A6 #3E27A6 #7D27A6
triadic
#3E27A6 #A63E27 #27A63E
tetradic
#3E27A6 #A62750 #8FA627 #27A67D
square
#3E27A6 #A62750 #8FA627 #27A67D
split-complementary
#3E27A6 #A67D27 #50A627
monochromatic
#191043 #2B1B74 #3E27A6 #553AD1 #806BDC

Accessibility & contrast

On white

10.27
#3E27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3E27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E27A6
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E27A6#FFFFFF#000000##FFFFFF
##3E27A61.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e27a6;
/* rgb */ color: rgb(62, 39, 166);
/* oklch */ color: oklch(39.4% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#8164c2',
    500: '#3e27a6',
    950: '#000000',
  },
}
SCSS
$custom: #3e27a6;
$custom-light: #8164c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e27a6",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 250.866,
    "s": 61.951,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3942,
    "c": 0.18918,
    "h": 281.6
  },
  "luminance": 0.05228
}

Semantic roles & 50–950 ramp

primary
#3E27A6
secondary
#B2C366
accent
#E543C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #3E27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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