#3E1B72#3E1B72

#3E1B72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.139 H 296.1°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#3E1B72
RGBrgb(62, 27, 114)
HSLhsl(264, 62%, 28%)
HSVhsv(264, 76%, 45%)
CMYKcmyk(45.6%, 76.3%, 0%, 55.3%)
CIE-LABlab(20.14, 36.64, -43.71)
CIE-LCHlch(20.14, 57.03, 309.97°)
OKLaboklab(32.79% 0.0614 -0.1251)
OKLCHoklch(32.79% 0.139 296.1)
XYZxyz(5.4150, 3.0228, 16.2145)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B72 #4F721B
analogous
#1B2372 #3E1B72 #691B72
triadic
#3E1B72 #723E1B #1B723E
tetradic
#3E1B72 #721B23 #4F721B #1B7269
square
#3E1B72 #721B23 #4F721B #1B7269
split-complementary
#3E1B72 #72691B #23721B
monochromatic
#0D0619 #230F41 #3E1B72 #5927A3 #7538D0

Accessibility & contrast

On white

13.09
#3E1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B72
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B72#FFFFFF#000000##FFFFFF
##3E1B721.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#303145
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1b72;
/* rgb */ color: rgb(62, 27, 114);
/* oklch */ color: oklch(32.8% 0.139 296.1);
Tailwind
colors: {
  custom: {
    50: '#795b9b',
    500: '#3e1b72',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b72;
$custom-light: #795b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b72",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 264.138,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.13933,
    "h": 296.1
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#3E1B72
secondary
#7EA742
accent
#E543A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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