#3E1F9B#3E1F9B

#3E1F9B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.184 H 284.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3E1F9B
RGBrgb(62, 31, 155)
HSLhsl(255, 67%, 36%)
HSVhsv(255, 80%, 61%)
CMYKcmyk(60%, 80%, 0%, 39.2%)
CIE-LABlab(24.86, 46.52, -61.70)
CIE-LCHlch(24.86, 77.27, 307.02°)
OKLaboklab(37.32% 0.0463 -0.1778)
OKLCHoklch(37.32% 0.184 284.6)
XYZxyz(8.3912, 4.3701, 31.4053)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F9B #7C9B1F
analogous
#1F3E9B #3E1F9B #7C1F9B
triadic
#3E1F9B #9B3E1F #1F9B3E
tetradic
#3E1F9B #9B1F3E #7C9B1F #1F9B7C
square
#3E1F9B #9B1F3E #7C9B1F #1F9B7C
split-complementary
#3E1F9B #9B7C1F #3E9B1F
monochromatic
#150B35 #2A1568 #3E1F9B #5229CE #7957DD

Accessibility & contrast

On white

11.20
#3E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1F9B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F9B#FFFFFF#000000##FFFFFF
##3E1F9B1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#03445D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3e1f9b;
/* rgb */ color: rgb(62, 31, 155);
/* oklch */ color: oklch(37.3% 0.184 284.6);
Tailwind
colors: {
  custom: {
    50: '#7f5fba',
    500: '#3e1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f9b;
$custom-light: #7f5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f9b",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 255,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37323,
    "c": 0.18374,
    "h": 284.6
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#3E1F9B
secondary
#A6C155
accent
#EA3EBF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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