#3E2187#3E2187

#3E2187 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.158 H 288.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#3E2187
RGBrgb(62, 33, 135)
HSLhsl(257, 61%, 33%)
HSVhsv(257, 76%, 53%)
CMYKcmyk(54.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(23.21, 39.61, -52.03)
CIE-LCHlch(23.21, 65.39, 307.29°)
OKLaboklab(35.56% 0.0506 -0.1495)
OKLCHoklch(35.56% 0.158 288.7)
XYZxyz(6.9024, 3.8608, 23.2985)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2187 #6A8721
analogous
#213787 #3E2187 #712187
triadic
#3E2187 #873E21 #21873E
tetradic
#3E2187 #872137 #6A8721 #218771
square
#3E2187 #872137 #6A8721 #218771
split-complementary
#3E2187 #877121 #378721
monochromatic
#110925 #271556 #3E2187 #552DB8 #744FD4

Accessibility & contrast

On white

11.85
#3E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2187
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2187#FFFFFF#000000##FFFFFF
##3E21871.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#223D52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2187;
/* rgb */ color: rgb(62, 33, 135);
/* oklch */ color: oklch(35.6% 0.158 288.7);
Tailwind
colors: {
  custom: {
    50: '#7c5fab',
    500: '#3e2187',
    950: '#000000',
  },
}
SCSS
$custom: #3e2187;
$custom-light: #7c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2187",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 257.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35559,
    "c": 0.15785,
    "h": 288.7
  },
  "luminance": 0.03861
}

Semantic roles & 50–950 ramp

primary
#3E2187
secondary
#99B74D
accent
#E444B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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