#3E2892#3E2892

#3E2892 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.164 H 284.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#3E2892
RGBrgb(62, 40, 146)
HSLhsl(252, 57%, 36%)
HSVhsv(252, 73%, 57%)
CMYKcmyk(57.5%, 72.6%, 0%, 42.7%)
CIE-LABlab(25.61, 39.13, -54.92)
CIE-LCHlch(25.61, 67.44, 305.47°)
OKLaboklab(37.58% 0.042 -0.1581)
OKLCHoklch(37.58% 0.164 284.9)
XYZxyz(7.9321, 4.6166, 27.6617)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2892 #7C9228
analogous
#284792 #3E2892 #732892
triadic
#3E2892 #923E28 #28923E
tetradic
#3E2892 #922847 #7C9228 #289273
square
#3E2892 #922847 #7C9228 #289273
split-complementary
#3E2892 #927328 #479228
monochromatic
#150E32 #2A1B62 #3E2892 #5235C2 #7961D4

Accessibility & contrast

On white

10.92
#3E2892 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3E2892 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2892
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2892#FFFFFF#000000##FFFFFF
##3E28921.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004095
Deuteranopia (green-blind)
#003990
Tritanopia (blue-blind)
#15445A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2892;
/* rgb */ color: rgb(62, 40, 146);
/* oklch */ color: oklch(37.6% 0.164 284.9);
Tailwind
colors: {
  custom: {
    50: '#7d64b3',
    500: '#3e2892',
    950: '#000000',
  },
}
SCSS
$custom: #3e2892;
$custom-light: #7d64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2892",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 146
  },
  "hsl": {
    "h": 252.453,
    "s": 56.989,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.16354,
    "h": 284.9
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#3E2892
secondary
#A6B95D
accent
#E048C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2892

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

Preview Lab → · Contrast checker → · Palette generator →

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