#3E1A74#3E1A74

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

Color values

HEX#3E1A74
RGBrgb(62, 26, 116)
HSLhsl(264, 63%, 28%)
HSVhsv(264, 78%, 45%)
CMYKcmyk(46.6%, 77.6%, 0%, 54.5%)
CIE-LABlab(20.14, 37.71, -44.99)
CIE-LCHlch(20.14, 58.71, 309.97°)
OKLaboklab(32.85% 0.0618 -0.1288)
OKLCHoklch(32.85% 0.143 295.6)
XYZxyz(5.5075, 3.0237, 16.8131)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A74 #50741A
analogous
#1A2374 #3E1A74 #6B1A74
triadic
#3E1A74 #743E1A #1A743E
tetradic
#3E1A74 #741A23 #50741A #1A746B
square
#3E1A74 #741A23 #50741A #1A746B
split-complementary
#3E1A74 #746B1A #23741A
monochromatic
#0D0619 #230F42 #3E1A74 #5925A6 #7536D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E1A74#FFFFFF#000000##FFFFFF
##3E1A741.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)
#003177
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#2F3246
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e1a74;
/* rgb */ color: rgb(62, 26, 116);
/* oklch */ color: oklch(32.8% 0.143 295.6);
Tailwind
colors: {
  custom: {
    50: '#795a9d',
    500: '#3e1a74',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a74;
$custom-light: #795a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a74",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 264,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32848,
    "c": 0.14291,
    "h": 295.6
  },
  "luminance": 0.03024
}

Semantic roles & 50–950 ramp

primary
#3E1A74
secondary
#7FA941
accent
#E641A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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