#3E2874#3E2874

#3E2874 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 34.9% C 0.124 H 292.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#3E2874
RGBrgb(62, 40, 116)
HSLhsl(257, 49%, 31%)
HSVhsv(257, 66%, 45%)
CMYKcmyk(46.6%, 65.5%, 0%, 54.5%)
CIE-LABlab(23.01, 29.80, -40.32)
CIE-LCHlch(23.01, 50.14, 306.47°)
OKLaboklab(34.9% 0.0466 -0.1152)
OKLCHoklch(34.9% 0.124 292)
XYZxyz(5.8969, 3.8025, 16.9429)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2874 #5E7428
analogous
#283874 #3E2874 #642874
triadic
#3E2874 #743E28 #28743E
tetradic
#3E2874 #742838 #5E7428 #287464
square
#3E2874 #742838 #5E7428 #287464
split-complementary
#3E2874 #746428 #387428
monochromatic
#0D0919 #261846 #3E2874 #5638A2 #7353C4

Accessibility & contrast

On white

11.93
#3E2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3E2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2874
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2874#FFFFFF#000000##FFFFFF
##3E28741.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#2E3A4A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e2874;
/* rgb */ color: rgb(62, 40, 116);
/* oklch */ color: oklch(34.9% 0.124 292.0);
Tailwind
colors: {
  custom: {
    50: '#78639d',
    500: '#3e2874',
    950: '#000000',
  },
}
SCSS
$custom: #3e2874;
$custom-light: #78639d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2874",
  "rgb": {
    "r": 62,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 257.368,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.12425,
    "h": 292
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#3E2874
secondary
#8EA652
accent
#D850B1
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3E2874

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

Preview Lab → · Contrast checker → · Palette generator →

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