#3E1FB2#3E1FB2

#3E1FB2 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.8% C 0.210 H 280.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#3E1FB2
RGBrgb(62, 31, 178)
HSLhsl(253, 70%, 41%)
HSVhsv(253, 83%, 70%)
CMYKcmyk(65.2%, 82.6%, 0%, 30.2%)
CIE-LABlab(27.35, 53.15, -71.50)
CIE-LCHlch(27.35, 89.09, 306.63°)
OKLaboklab(39.78% 0.0389 -0.2064)
OKLCHoklch(39.78% 0.21 280.7)
XYZxyz(10.5099, 5.2176, 42.5641)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FB2 #93B21F
analogous
#1F49B2 #3E1FB2 #871FB2
triadic
#3E1FB2 #B23E1F #1FB23E
tetradic
#3E1FB2 #B21F49 #93B21F #1FB287
square
#3E1FB2 #B21F49 #93B21F #1FB287
split-complementary
#3E1FB2 #B2871F #49B21F
monochromatic
#1A0D4A #2C167E #3E1FB2 #5633DB #8167E5

Accessibility & contrast

On white

10.28
#3E1FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3E1FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FB2
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FB2#FFFFFF#000000##FFFFFF
##3E1FB21.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003BAF
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e1fb2;
/* rgb */ color: rgb(62, 31, 178);
/* oklch */ color: oklch(39.8% 0.210 280.7);
Tailwind
colors: {
  custom: {
    50: '#8461ca',
    500: '#3e1fb2',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fb2;
$custom-light: #8461ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fb2",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 178
  },
  "hsl": {
    "h": 252.653,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39779,
    "c": 0.21001,
    "h": 280.7
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#3E1FB2
secondary
#B4CA63
accent
#ED3BC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E1FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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