#3E1972#3E1972

#3E1972 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.142 H 296.5°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3E1972
RGBrgb(62, 25, 114)
HSLhsl(265, 64%, 27%)
HSVhsv(265, 78%, 45%)
CMYKcmyk(45.6%, 78.1%, 0%, 55.3%)
CIE-LABlab(19.78, 37.65, -44.29)
CIE-LCHlch(19.78, 58.13, 310.37°)
OKLaboklab(32.54% 0.0633 -0.1268)
OKLCHoklch(32.54% 0.142 296.5)
XYZxyz(5.3707, 2.9342, 16.1997)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1972 #4D7219
analogous
#192072 #3E1972 #6B1972
triadic
#3E1972 #723E19 #19723E
tetradic
#3E1972 #721920 #4D7219 #19726B
square
#3E1972 #721920 #4D7219 #19726B
split-complementary
#3E1972 #726B19 #207219
monochromatic
#0E0619 #230E40 #3E1972 #5924A4 #7533D2

Accessibility & contrast

On white

13.23
#3E1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3E1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1972
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1972#FFFFFF#000000##FFFFFF
##3E19721.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#303044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1972;
/* rgb */ color: rgb(62, 25, 114);
/* oklch */ color: oklch(32.5% 0.142 296.5);
Tailwind
colors: {
  custom: {
    50: '#795a9b',
    500: '#3e1972',
    950: '#000000',
  },
}
SCSS
$custom: #3e1972;
$custom-light: #795a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1972",
  "rgb": {
    "r": 62,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 264.944,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32537,
    "c": 0.14171,
    "h": 296.5
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#3E1972
secondary
#7CA740
accent
#E741A2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1972

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

Preview Lab → · Contrast checker → · Palette generator →

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