#3E1FB4#3E1FB4

#3E1FB4 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.0% C 0.212 H 280.4°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#3E1FB4
RGBrgb(62, 31, 180)
HSLhsl(252, 71%, 41%)
HSVhsv(252, 83%, 71%)
CMYKcmyk(65.6%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.57, 53.72, -72.33)
CIE-LCHlch(27.57, 90.10, 306.60°)
OKLaboklab(40% 0.0383 -0.2088)
OKLCHoklch(40% 0.212 280.4)
XYZxyz(10.7122, 5.2985, 43.6294)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FB4 #95B41F
analogous
#1F4BB4 #3E1FB4 #891FB4
triadic
#3E1FB4 #B43E1F #1FB43E
tetradic
#3E1FB4 #B41F4B #95B41F #1FB489
square
#3E1FB4 #B41F4B #95B41F #1FB489
split-complementary
#3E1FB4 #B4891F #4BB41F
monochromatic
#1A0D4C #2C1680 #3E1FB4 #5734DC #8268E5

Accessibility & contrast

On white

10.20
#3E1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#3E1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FB4
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FB4#FFFFFF#000000##FFFFFF
##3E1FB41.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003BB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e1fb4;
/* rgb */ color: rgb(62, 31, 180);
/* oklch */ color: oklch(40.0% 0.212 280.4);
Tailwind
colors: {
  custom: {
    50: '#8461cc',
    500: '#3e1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fb4;
$custom-light: #8461cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fb4",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 252.483,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.21225,
    "h": 280.4
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#3E1FB4
secondary
#B5CB64
accent
#ED3AC8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3E1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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