#3E1E7B#3E1E7B

#3E1E7B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.147 H 292.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#3E1E7B
RGBrgb(62, 30, 123)
HSLhsl(261, 61%, 30%)
HSVhsv(261, 76%, 48%)
CMYKcmyk(49.6%, 75.6%, 0%, 51.8%)
CIE-LABlab(21.51, 37.66, -47.22)
CIE-LCHlch(21.51, 60.40, 308.57°)
OKLaboklab(34.02% 0.0562 -0.1354)
OKLCHoklch(34.02% 0.147 292.6)
XYZxyz(6.0250, 3.3825, 19.0705)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E7B #5B7B1E
analogous
#1E2D7B #3E1E7B #6C1E7B
triadic
#3E1E7B #7B3E1E #1E7B3E
tetradic
#3E1E7B #7B1E2D #5B7B1E #1E7B6C
square
#3E1E7B #7B1E2D #5B7B1E #1E7B6C
split-complementary
#3E1E7B #7B6C1E #2D7B1E
monochromatic
#0C0619 #25124A #3E1E7B #572AAC #7342D1

Accessibility & contrast

On white

12.53
#3E1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3E1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1E7B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E7B#FFFFFF#000000##FFFFFF
##3E1E7B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#2B364A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1e7b;
/* rgb */ color: rgb(62, 30, 123);
/* oklch */ color: oklch(34.0% 0.147 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a5da2',
    500: '#3e1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e7b;
$custom-light: #7a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e7b",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 260.645,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.34019,
    "c": 0.14663,
    "h": 292.6
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#3E1E7B
secondary
#8BAE46
accent
#E444AD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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