#3E1071#3E1071

#3E1071 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.150 H 298.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#3E1071
RGBrgb(62, 16, 113)
HSLhsl(268, 75%, 25%)
HSVhsv(268, 86%, 44%)
CMYKcmyk(45.1%, 85.8%, 0%, 55.7%)
CIE-LABlab(18.31, 41.35, -46.05)
CIE-LCHlch(18.31, 61.89, 311.92°)
OKLaboklab(31.48% 0.0712 -0.1319)
OKLCHoklch(31.48% 0.15 298.4)
XYZxyz(5.1518, 2.5869, 15.8475)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1071 #437110
analogous
#101271 #3E1071 #6F1071
triadic
#3E1071 #713E10 #10713E
tetradic
#3E1071 #711012 #437110 #10716F
square
#3E1071 #711012 #437110 #10716F
split-complementary
#3E1071 #716F10 #127110
monochromatic
#0F041B #21083B #3E1071 #5B18A7 #791FDC

Accessibility & contrast

On white

13.84
#3E1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3E1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1071
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1071#FFFFFF#000000##FFFFFF
##3E10711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#312C42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1071;
/* rgb */ color: rgb(62, 16, 113);
/* oklch */ color: oklch(31.5% 0.150 298.4);
Tailwind
colors: {
  custom: {
    50: '#7a559b',
    500: '#3e1071',
    950: '#000000',
  },
}
SCSS
$custom: #3e1071;
$custom-light: #7a559b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1071",
  "rgb": {
    "r": 62,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 268.454,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31481,
    "c": 0.1499,
    "h": 298.4
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#3E1071
secondary
#71A934
accent
#F23699
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1071

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

Preview Lab → · Contrast checker → · Palette generator →

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