#3E1F9F#3E1F9F

#3E1F9F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.188 H 283.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#3E1F9F
RGBrgb(62, 31, 159)
HSLhsl(255, 67%, 37%)
HSVhsv(255, 81%, 62%)
CMYKcmyk(61%, 80.5%, 0%, 37.6%)
CIE-LABlab(25.28, 47.68, -63.45)
CIE-LCHlch(25.28, 79.37, 306.93°)
OKLaboklab(37.74% 0.0451 -0.1829)
OKLCHoklch(37.74% 0.188 283.8)
XYZxyz(8.7327, 4.5067, 33.2039)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F9F #809F1F
analogous
#1F409F #3E1F9F #7E1F9F
triadic
#3E1F9F #9F3E1F #1F9F3E
tetradic
#3E1F9F #9F1F40 #809F1F #1F9F7E
square
#3E1F9F #9F1F40 #809F1F #1F9F7E
split-complementary
#3E1F9F #9F7E1F #409F1F
monochromatic
#160B39 #2A156C #3E1F9F #5229D2 #7A5ADF

Accessibility & contrast

On white

11.04
#3E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F9F
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F9F#FFFFFF#000000##FFFFFF
##3E1F9F1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e1f9f;
/* rgb */ color: rgb(62, 31, 159);
/* oklch */ color: oklch(37.7% 0.188 283.8);
Tailwind
colors: {
  custom: {
    50: '#8060bd',
    500: '#3e1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f9f;
$custom-light: #8060bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f9f",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 254.531,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37741,
    "c": 0.18837,
    "h": 283.8
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#3E1F9F
secondary
#A9C357
accent
#EA3EC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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