#3E1F9A#3E1F9A

#3E1F9A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.183 H 284.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3E1F9A
RGBrgb(62, 31, 154)
HSLhsl(255, 66%, 36%)
HSVhsv(255, 80%, 60%)
CMYKcmyk(59.7%, 79.9%, 0%, 39.6%)
CIE-LABlab(24.75, 46.23, -61.26)
CIE-LCHlch(24.75, 76.74, 307.04°)
OKLaboklab(37.22% 0.0466 -0.1765)
OKLCHoklch(37.22% 0.183 284.8)
XYZxyz(8.3075, 4.3367, 30.9649)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F9A #7B9A1F
analogous
#1F3E9A #3E1F9A #7C1F9A
triadic
#3E1F9A #9A3E1F #1F9A3E
tetradic
#3E1F9A #9A1F3E #7B9A1F #1F9A7C
square
#3E1F9A #9A1F3E #7B9A1F #1F9A7C
split-complementary
#3E1F9A #9A7C1F #3E9A1F
monochromatic
#150A34 #291567 #3E1F9A #5329CD #7856DD

Accessibility & contrast

On white

11.25
#3E1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3E1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F9A
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F9A#FFFFFF#000000##FFFFFF
##3E1F9A1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#05435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1f9a;
/* rgb */ color: rgb(62, 31, 154);
/* oklch */ color: oklch(37.2% 0.183 284.8);
Tailwind
colors: {
  custom: {
    50: '#7f5fb9',
    500: '#3e1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f9a;
$custom-light: #7f5fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f9a",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 255.122,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37219,
    "c": 0.18258,
    "h": 284.8
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

primary
#3E1F9A
secondary
#A5C154
accent
#E93EBE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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