#3E2B71#3E2B71

#3E2B71 is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.2% C 0.116 H 291.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#3E2B71
RGBrgb(62, 43, 113)
HSLhsl(256, 45%, 31%)
HSVhsv(256, 62%, 44%)
CMYKcmyk(45.1%, 61.9%, 0%, 55.7%)
CIE-LABlab(23.49, 27.00, -37.62)
CIE-LCHlch(23.49, 46.31, 305.66°)
OKLaboklab(35.18% 0.0431 -0.1072)
OKLCHoklch(35.18% 0.116 291.9)
XYZxyz(5.8303, 3.9440, 16.0737)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2B71 #5E712B
analogous
#2B3B71 #3E2B71 #612B71
triadic
#3E2B71 #713E2B #2B713E
tetradic
#3E2B71 #712B3B #5E712B #2B7161
square
#3E2B71 #712B3B #5E712B #2B7161
split-complementary
#3E2B71 #71612B #3B712B
monochromatic
#0D0918 #261A45 #3E2B71 #563C9D #7357BF

Accessibility & contrast

On white

11.74
#3E2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2B71
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2B71#FFFFFF#000000##FFFFFF
##3E2B711.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#03376F
Tritanopia (blue-blind)
#303B49
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e2b71;
/* rgb */ color: rgb(62, 43, 113);
/* oklch */ color: oklch(35.2% 0.116 291.9);
Tailwind
colors: {
  custom: {
    50: '#77659a',
    500: '#3e2b71',
    950: '#000000',
  },
}
SCSS
$custom: #3e2b71;
$custom-light: #77659a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2b71",
  "rgb": {
    "r": 62,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 256.286,
    "s": 44.872,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35176,
    "c": 0.11557,
    "h": 291.9
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#3E2B71
secondary
#8EA355
accent
#D553B1
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #3E2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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