#3E1988#3E1988

#3E1988 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.167 H 289.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#3E1988
RGBrgb(62, 25, 136)
HSLhsl(260, 69%, 32%)
HSVhsv(260, 82%, 53%)
CMYKcmyk(54.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(21.93, 43.83, -54.75)
CIE-LCHlch(21.93, 70.13, 308.68°)
OKLaboklab(34.7% 0.0566 -0.1574)
OKLCHoklch(34.7% 0.167 289.8)
XYZxyz(6.7769, 3.4967, 23.6056)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1988 #638819
analogous
#192C88 #3E1988 #761988
triadic
#3E1988 #883E19 #19883E
tetradic
#3E1988 #88192C #638819 #198876
square
#3E1988 #88192C #638819 #198876
split-complementary
#3E1988 #887619 #2C8819
monochromatic
#0F0621 #260F54 #3E1988 #5623BC #7440DC

Accessibility & contrast

On white

12.36
#3E1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1988
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1988#FFFFFF#000000##FFFFFF
##3E19881.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#223A51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1988;
/* rgb */ color: rgb(62, 25, 136);
/* oklch */ color: oklch(34.7% 0.167 289.8);
Tailwind
colors: {
  custom: {
    50: '#7c5bac',
    500: '#3e1988',
    950: '#000000',
  },
}
SCSS
$custom: #3e1988;
$custom-light: #7c5bac;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1988",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 260,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.16728,
    "h": 289.8
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#3E1988
secondary
#93BB41
accent
#EC3CB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1988

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

Preview Lab → · Contrast checker → · Palette generator →

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