#3E1889#3E1889

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

Color values

HEX#3E1889
RGBrgb(62, 24, 137)
HSLhsl(260, 70%, 32%)
HSVhsv(260, 82%, 54%)
CMYKcmyk(54.7%, 82.5%, 0%, 46.3%)
CIE-LABlab(21.88, 44.55, -55.45)
CIE-LCHlch(21.88, 71.14, 308.78°)
OKLaboklab(34.7% 0.0569 -0.1595)
OKLCHoklch(34.7% 0.169 289.6)
XYZxyz(6.8273, 3.4832, 23.9746)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1889 #638918
analogous
#182B89 #3E1889 #771889
triadic
#3E1889 #893E18 #18893E
tetradic
#3E1889 #89182B #638918 #188977
square
#3E1889 #89182B #638918 #188977
split-complementary
#3E1889 #897718 #2B8918
monochromatic
#0F0621 #260F55 #3E1889 #5621BD #743EDD

Accessibility & contrast

On white

12.38
#3E1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1889
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1889#FFFFFF#000000##FFFFFF
##3E18891.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#213A51
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1889;
/* rgb */ color: rgb(62, 24, 137);
/* oklch */ color: oklch(34.7% 0.169 289.6);
Tailwind
colors: {
  custom: {
    50: '#7d5bad',
    500: '#3e1889',
    950: '#000000',
  },
}
SCSS
$custom: #3e1889;
$custom-light: #7d5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1889",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 260.177,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34695,
    "c": 0.16934,
    "h": 289.6
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#3E1889
secondary
#93BD40
accent
#ED3BB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F

Preview Lab

Preview with #3E1889

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

Preview Lab → · Contrast checker → · Palette generator →

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