#3E187A#3E187A

#3E187A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.152 H 294.0°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#3E187A
RGBrgb(62, 24, 122)
HSLhsl(263, 67%, 29%)
HSVhsv(263, 80%, 48%)
CMYKcmyk(49.2%, 80.3%, 0%, 52.2%)
CIE-LABlab(20.37, 40.36, -48.46)
CIE-LCHlch(20.37, 63.06, 309.79°)
OKLaboklab(33.19% 0.0619 -0.139)
OKLCHoklch(33.19% 0.152 294)
XYZxyz(5.8251, 3.0824, 18.6966)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187A #547A18
analogous
#18237A #3E187A #6F187A
triadic
#3E187A #7A3E18 #187A3E
tetradic
#3E187A #7A1823 #547A18 #187A6F
square
#3E187A #7A1823 #547A18 #187A6F
split-complementary
#3E187A #7A6F18 #237A18
monochromatic
#0D051A #240E47 #3E187A #5822AD #7435D7

Accessibility & contrast

On white

12.99
#3E187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E187A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187A#FFFFFF#000000##FFFFFF
##3E187A1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#2C3348
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e187a;
/* rgb */ color: rgb(62, 24, 122);
/* oklch */ color: oklch(33.2% 0.152 294.0);
Tailwind
colors: {
  custom: {
    50: '#7a5aa1',
    500: '#3e187a',
    950: '#000000',
  },
}
SCSS
$custom: #3e187a;
$custom-light: #7a5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187a",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 263.265,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33186,
    "c": 0.15215,
    "h": 294
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

primary
#3E187A
secondary
#83AF3F
accent
#EA3EA7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187A

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

Preview Lab → · Contrast checker → · Palette generator →

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