#3E1F7F#3E1F7F

#3E1F7F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.150 H 291.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#3E1F7F
RGBrgb(62, 31, 127)
HSLhsl(259, 61%, 31%)
HSVhsv(259, 76%, 50%)
CMYKcmyk(51.2%, 75.6%, 0%, 50.2%)
CIE-LABlab(22.07, 38.30, -48.84)
CIE-LCHlch(22.07, 62.07, 308.10°)
OKLaboklab(34.53% 0.0543 -0.1402)
OKLCHoklch(34.53% 0.15 291.2)
XYZxyz(6.3063, 3.5362, 20.4248)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F7F #607F1F
analogous
#1F307F #3E1F7F #6E1F7F
triadic
#3E1F7F #7F3E1F #1F7F3E
tetradic
#3E1F7F #7F1F30 #607F1F #1F7F6E
square
#3E1F7F #7F1F30 #607F1F #1F7F6E
split-complementary
#3E1F7F #7F6E1F #307F1F
monochromatic
#0E071D #26134E #3E1F7F #562BB0 #7346D2

Accessibility & contrast

On white

12.30
#3E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3E1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F7F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F7F#FFFFFF#000000##FFFFFF
##3E1F7F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#28394D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3e1f7f;
/* rgb */ color: rgb(62, 31, 127);
/* oklch */ color: oklch(34.5% 0.150 291.2);
Tailwind
colors: {
  custom: {
    50: '#7a5ea5',
    500: '#3e1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f7f;
$custom-light: #7a5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f7f",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 259.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.15035,
    "h": 291.2
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#3E1F7F
secondary
#90B248
accent
#E444B0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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