#3E1472#3E1472

#3E1472 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.147 H 297.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#3E1472
RGBrgb(62, 20, 114)
HSLhsl(267, 70%, 26%)
HSVhsv(267, 82%, 45%)
CMYKcmyk(45.6%, 82.5%, 0%, 55.3%)
CIE-LABlab(18.97, 39.98, -45.62)
CIE-LCHlch(18.97, 60.66, 311.23°)
OKLaboklab(31.97% 0.0678 -0.1306)
OKLCHoklch(31.97% 0.147 297.4)
XYZxyz(5.2732, 2.7392, 16.1672)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1472 #487214
analogous
#141972 #3E1472 #6D1472
triadic
#3E1472 #723E14 #14723E
tetradic
#3E1472 #721419 #487214 #14726D
square
#3E1472 #721419 #487214 #14726D
split-complementary
#3E1472 #726D14 #197214
monochromatic
#0E051A #220B3E #3E1472 #5A1DA6 #7727D9

Accessibility & contrast

On white

13.57
#3E1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1472
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1472#FFFFFF#000000##FFFFFF
##3E14721.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#302E43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1472;
/* rgb */ color: rgb(62, 20, 114);
/* oklch */ color: oklch(32.0% 0.147 297.4);
Tailwind
colors: {
  custom: {
    50: '#79579b',
    500: '#3e1472',
    950: '#000000',
  },
}
SCSS
$custom: #3e1472;
$custom-light: #79579b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1472",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 266.809,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3197,
    "c": 0.14717,
    "h": 297.4
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#3E1472
secondary
#77A839
accent
#ED3B9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E1472

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

Preview Lab → · Contrast checker → · Palette generator →

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