#3E1B75#3E1B75

#3E1B75 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.143 H 295.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#3E1B75
RGBrgb(62, 27, 117)
HSLhsl(263, 63%, 28%)
HSVhsv(263, 77%, 46%)
CMYKcmyk(47%, 76.9%, 0%, 54.1%)
CIE-LABlab(20.41, 37.49, -45.19)
CIE-LCHlch(20.41, 58.72, 309.68°)
OKLaboklab(33.07% 0.0606 -0.1294)
OKLCHoklch(33.07% 0.143 295.1)
XYZxyz(5.5886, 3.0922, 17.1286)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B75 #52751B
analogous
#1B2575 #3E1B75 #6B1B75
triadic
#3E1B75 #753E1B #1B753E
tetradic
#3E1B75 #751B25 #52751B #1B756B
square
#3E1B75 #751B25 #52751B #1B756B
split-complementary
#3E1B75 #756B1B #25751B
monochromatic
#0D0619 #241043 #3E1B75 #5826A7 #7439D1

Accessibility & contrast

On white

12.98
#3E1B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E1B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B75
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B75#FFFFFF#000000##FFFFFF
##3E1B751.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#2E3346
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1b75;
/* rgb */ color: rgb(62, 27, 117);
/* oklch */ color: oklch(33.1% 0.143 295.1);
Tailwind
colors: {
  custom: {
    50: '#795b9e',
    500: '#3e1b75',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b75;
$custom-light: #795b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b75",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 263.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33067,
    "c": 0.14293,
    "h": 295.1
  },
  "luminance": 0.03092
}

Semantic roles & 50–950 ramp

primary
#3E1B75
secondary
#81A942
accent
#E642A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1B75

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

Preview Lab → · Contrast checker → · Palette generator →

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