#3E1F7E#3E1F7E

#3E1F7E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.149 H 291.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3E1F7E
RGBrgb(62, 31, 126)
HSLhsl(260, 61%, 31%)
HSVhsv(260, 75%, 49%)
CMYKcmyk(50.8%, 75.4%, 0%, 50.6%)
CIE-LABlab(21.98, 38.01, -48.36)
CIE-LCHlch(21.98, 61.51, 308.16°)
OKLaboklab(34.43% 0.0546 -0.1388)
OKLCHoklch(34.43% 0.149 291.5)
XYZxyz(6.2414, 3.5102, 20.0833)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F7E #5F7E1F
analogous
#1F2F7E #3E1F7E #6D1F7E
triadic
#3E1F7E #7E3E1F #1F7E3E
tetradic
#3E1F7E #7E1F2F #5F7E1F #1F7E6D
square
#3E1F7E #7E1F2F #5F7E1F #1F7E6D
split-complementary
#3E1F7E #7E6D1F #2F7E1F
monochromatic
#0E071C #26134D #3E1F7E #562BAF #7346D1

Accessibility & contrast

On white

12.34
#3E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F7E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F7E#FFFFFF#000000##FFFFFF
##3E1F7E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#29384C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1f7e;
/* rgb */ color: rgb(62, 31, 126);
/* oklch */ color: oklch(34.4% 0.149 291.5);
Tailwind
colors: {
  custom: {
    50: '#7a5ea4',
    500: '#3e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f7e;
$custom-light: #7a5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f7e",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 259.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34434,
    "c": 0.14912,
    "h": 291.5
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#3E1F7E
secondary
#8FB148
accent
#E444B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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