#3E1F94#3E1F94

#3E1F94 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.176 H 286.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#3E1F94
RGBrgb(62, 31, 148)
HSLhsl(256, 65%, 35%)
HSVhsv(256, 79%, 58%)
CMYKcmyk(58.1%, 79.1%, 0%, 42%)
CIE-LABlab(24.13, 44.47, -58.59)
CIE-LCHlch(24.13, 73.55, 307.20°)
OKLaboklab(36.6% 0.0485 -0.1687)
OKLCHoklch(36.6% 0.176 286)
XYZxyz(7.8203, 4.1418, 28.3986)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F94 #75941F
analogous
#1F3B94 #3E1F94 #781F94
triadic
#3E1F94 #943E1F #1F943E
tetradic
#3E1F94 #941F3B #75941F #1F9478
square
#3E1F94 #941F3B #75941F #1F9478
split-complementary
#3E1F94 #94781F #3B941F
monochromatic
#140A2F #291461 #3E1F94 #532AC7 #7753DB

Accessibility & contrast

On white

11.49
#3E1F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3E1F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F94
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F94#FFFFFF#000000##FFFFFF
##3E1F941.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003692
Tritanopia (blue-blind)
#134159
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3e1f94;
/* rgb */ color: rgb(62, 31, 148);
/* oklch */ color: oklch(36.6% 0.176 286.0);
Tailwind
colors: {
  custom: {
    50: '#7e5fb5',
    500: '#3e1f94',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f94;
$custom-light: #7e5fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f94",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 255.897,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36601,
    "c": 0.17555,
    "h": 286
  },
  "luminance": 0.04142
}

Semantic roles & 50–950 ramp

primary
#3E1F94
secondary
#A1BE51
accent
#E83FBC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F94

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

Preview Lab → · Contrast checker → · Palette generator →

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