#3E1FA8#3E1FA8

#3E1FA8 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.199 H 282.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#3E1FA8
RGBrgb(62, 31, 168)
HSLhsl(254, 69%, 39%)
HSVhsv(254, 82%, 66%)
CMYKcmyk(63.1%, 81.5%, 0%, 34.1%)
CIE-LABlab(26.25, 50.29, -67.31)
CIE-LCHlch(26.25, 84.02, 306.76°)
OKLaboklab(38.7% 0.0422 -0.1942)
OKLCHoklch(38.7% 0.199 282.3)
XYZxyz(9.5423, 4.8306, 37.4677)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1FA8 #89A81F
analogous
#1F44A8 #3E1FA8 #831FA8
triadic
#3E1FA8 #A83E1F #1FA83E
tetradic
#3E1FA8 #A81F44 #89A81F #1FA883
square
#3E1FA8 #A81F44 #89A81F #1FA883
split-complementary
#3E1FA8 #A8831F #44A81F
monochromatic
#180C41 #2B1574 #3E1FA8 #532CD8 #7D60E2

Accessibility & contrast

On white

10.68
#3E1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1FA8
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1FA8#FFFFFF#000000##FFFFFF
##3E1FA81.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e1fa8;
/* rgb */ color: rgb(62, 31, 168);
/* oklch */ color: oklch(38.7% 0.199 282.3);
Tailwind
colors: {
  custom: {
    50: '#8260c3',
    500: '#3e1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #3e1fa8;
$custom-light: #8260c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1fa8",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 253.577,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.1987,
    "h": 282.3
  },
  "luminance": 0.04831
}

Semantic roles & 50–950 ramp

primary
#3E1FA8
secondary
#AEC65D
accent
#EC3CC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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