#3E1B74#3E1B74

#3E1B74 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.142 H 295.4°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#3E1B74
RGBrgb(62, 27, 116)
HSLhsl(264, 62%, 28%)
HSVhsv(264, 77%, 45%)
CMYKcmyk(46.6%, 76.7%, 0%, 54.5%)
CIE-LABlab(20.32, 37.21, -44.70)
CIE-LCHlch(20.32, 58.16, 309.77°)
OKLaboklab(32.97% 0.0609 -0.128)
OKLCHoklch(32.97% 0.142 295.4)
XYZxyz(5.5301, 3.0688, 16.8206)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B74 #51741B
analogous
#1B2474 #3E1B74 #6B1B74
triadic
#3E1B74 #743E1B #1B743E
tetradic
#3E1B74 #741B24 #51741B #1B746B
square
#3E1B74 #741B24 #51741B #1B746B
split-complementary
#3E1B74 #746B1B #24741B
monochromatic
#0D0619 #230F42 #3E1B74 #5927A6 #7439D1

Accessibility & contrast

On white

13.01
#3E1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3E1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B74
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B74#FFFFFF#000000##FFFFFF
##3E1B741.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#2F3246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1b74;
/* rgb */ color: rgb(62, 27, 116);
/* oklch */ color: oklch(33.0% 0.142 295.4);
Tailwind
colors: {
  custom: {
    50: '#795b9d',
    500: '#3e1b74',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b74;
$custom-light: #795b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b74",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 263.596,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.14173,
    "h": 295.4
  },
  "luminance": 0.03069
}

Semantic roles & 50–950 ramp

primary
#3E1B74
secondary
#80A942
accent
#E542A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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