#3E2072#3E2072

#3E2072 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.133 H 295.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#3E2072
RGBrgb(62, 32, 114)
HSLhsl(262, 56%, 29%)
HSVhsv(262, 72%, 45%)
CMYKcmyk(45.6%, 71.9%, 0%, 55.3%)
CIE-LABlab(21.10, 33.94, -42.13)
CIE-LCHlch(21.10, 54.10, 308.85°)
OKLaboklab(33.48% 0.0561 -0.1205)
OKLCHoklch(33.48% 0.133 295)
XYZxyz(5.5396, 3.2719, 16.2560)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2072 #547220
analogous
#202B72 #3E2072 #672072
triadic
#3E2072 #723E20 #20723E
tetradic
#3E2072 #72202B #547220 #207267
square
#3E2072 #72202B #547220 #207267
split-complementary
#3E2072 #726720 #2B7220
monochromatic
#0D0718 #241342 #3E2072 #582DA2 #7442CA

Accessibility & contrast

On white

12.69
#3E2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2072
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2072#FFFFFF#000000##FFFFFF
##3E20721.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#303446
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e2072;
/* rgb */ color: rgb(62, 32, 114);
/* oklch */ color: oklch(33.5% 0.133 295.0);
Tailwind
colors: {
  custom: {
    50: '#785e9b',
    500: '#3e2072',
    950: '#000000',
  },
}
SCSS
$custom: #3e2072;
$custom-light: #785e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2072",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 261.951,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.13291,
    "h": 295
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#3E2072
secondary
#83A648
accent
#DF48A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E2072

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

Preview Lab → · Contrast checker → · Palette generator →

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