#3E1F8B#3E1F8B

#3E1F8B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.165 H 288.1°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#3E1F8B
RGBrgb(62, 31, 139)
HSLhsl(257, 64%, 33%)
HSVhsv(257, 78%, 55%)
CMYKcmyk(55.4%, 77.7%, 0%, 45.5%)
CIE-LABlab(23.23, 41.83, -54.49)
CIE-LCHlch(23.23, 68.70, 307.51°)
OKLaboklab(35.69% 0.0511 -0.1567)
OKLCHoklch(35.69% 0.165 288.1)
XYZxyz(7.1354, 3.8678, 24.7917)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F8B #6C8B1F
analogous
#1F368B #3E1F8B #741F8B
triadic
#3E1F8B #8B3E1F #1F8B3E
tetradic
#3E1F8B #8B1F36 #6C8B1F #1F8B74
square
#3E1F8B #8B1F36 #6C8B1F #1F8B74
split-complementary
#3E1F8B #8B741F #368B1F
monochromatic
#110927 #281459 #3E1F8B #542ABD #754DD7

Accessibility & contrast

On white

11.84
#3E1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3E1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F8B
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F8B#FFFFFF#000000##FFFFFF
##3E1F8B1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#1E3D54
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3e1f8b;
/* rgb */ color: rgb(62, 31, 139);
/* oklch */ color: oklch(35.7% 0.165 288.1);
Tailwind
colors: {
  custom: {
    50: '#7c5eae',
    500: '#3e1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f8b;
$custom-light: #7c5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f8b",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 257.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35694,
    "c": 0.16487,
    "h": 288.1
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#3E1F8B
secondary
#9ABA4C
accent
#E741B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3E1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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