#3E1A73#3E1A73

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

Color values

HEX#3E1A73
RGBrgb(62, 26, 115)
HSLhsl(264, 63%, 28%)
HSVhsv(264, 77%, 45%)
CMYKcmyk(46.1%, 77.4%, 0%, 54.9%)
CIE-LABlab(20.05, 37.43, -44.50)
CIE-LCHlch(20.05, 58.15, 310.07°)
OKLaboklab(32.75% 0.0621 -0.1274)
OKLCHoklch(32.75% 0.142 296)
XYZxyz(5.4497, 3.0006, 16.5084)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A73 #4F731A
analogous
#1A2273 #3E1A73 #6B1A73
triadic
#3E1A73 #733E1A #1A733E
tetradic
#3E1A73 #731A22 #4F731A #1A736B
square
#3E1A73 #731A22 #4F731A #1A736B
split-complementary
#3E1A73 #736B1A #22731A
monochromatic
#0D0619 #230F41 #3E1A73 #5925A5 #7536D2

Accessibility & contrast

On white

13.12
#3E1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1A73
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A73#FFFFFF#000000##FFFFFF
##3E1A731.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#303145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1a73;
/* rgb */ color: rgb(62, 26, 115);
/* oklch */ color: oklch(32.8% 0.142 296.0);
Tailwind
colors: {
  custom: {
    50: '#795a9c',
    500: '#3e1a73',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a73;
$custom-light: #795a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a73",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 264.27,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32754,
    "c": 0.14173,
    "h": 296
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#3E1A73
secondary
#7EA841
accent
#E642A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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