#3E2794#3E2794

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

Color values

HEX#3E2794
RGBrgb(62, 39, 148)
HSLhsl(253, 58%, 37%)
HSVhsv(253, 74%, 58%)
CMYKcmyk(58.1%, 73.6%, 0%, 42%)
CIE-LABlab(25.60, 40.31, -56.17)
CIE-LCHlch(25.60, 69.14, 305.66°)
OKLaboklab(37.63% 0.0424 -0.1617)
OKLCHoklch(37.63% 0.167 284.7)
XYZxyz(8.0558, 4.6128, 28.4771)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2794 #7D9427
analogous
#274694 #3E2794 #752794
triadic
#3E2794 #943E27 #27943E
tetradic
#3E2794 #942746 #7D9427 #279475
square
#3E2794 #942746 #7D9427 #279475
split-complementary
#3E2794 #947527 #469427
monochromatic
#150D33 #2A1A64 #3E2794 #5234C4 #7960D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E2794#FFFFFF#000000##FFFFFF
##3E27941.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)
#004097
Deuteranopia (green-blind)
#003992
Tritanopia (blue-blind)
#12455B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e2794;
/* rgb */ color: rgb(62, 39, 148);
/* oklch */ color: oklch(37.6% 0.167 284.7);
Tailwind
colors: {
  custom: {
    50: '#7d64b4',
    500: '#3e2794',
    950: '#000000',
  },
}
SCSS
$custom: #3e2794;
$custom-light: #7d64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2794",
  "rgb": {
    "r": 62,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 252.661,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.16719,
    "h": 284.7
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#3E2794
secondary
#A7BB5C
accent
#E246C1
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #3E2794

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

Preview Lab → · Contrast checker → · Palette generator →

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