#3E1F72#3E1F72

#3E1F72 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.134 H 295.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1F72
RGBrgb(62, 31, 114)
HSLhsl(262, 57%, 28%)
HSVhsv(262, 73%, 45%)
CMYKcmyk(45.6%, 72.8%, 0%, 55.3%)
CIE-LABlab(20.90, 34.49, -42.46)
CIE-LCHlch(20.90, 54.71, 309.09°)
OKLaboklab(33.33% 0.0572 -0.1214)
OKLCHoklch(33.33% 0.134 295.2)
XYZxyz(5.5130, 3.2189, 16.2472)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F72 #53721F
analogous
#1F2972 #3E1F72 #671F72
triadic
#3E1F72 #723E1F #1F723E
tetradic
#3E1F72 #721F29 #53721F #1F7267
square
#3E1F72 #721F29 #53721F #1F7267
split-complementary
#3E1F72 #72671F #29721F
monochromatic
#0D0718 #241242 #3E1F72 #582CA2 #7440CB

Accessibility & contrast

On white

12.78
#3E1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3E1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F72
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F72#FFFFFF#000000##FFFFFF
##3E1F721.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#303446
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1f72;
/* rgb */ color: rgb(62, 31, 114);
/* oklch */ color: oklch(33.3% 0.134 295.2);
Tailwind
colors: {
  custom: {
    50: '#795d9b',
    500: '#3e1f72',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f72;
$custom-light: #795d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f72",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 262.41,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.13424,
    "h": 295.2
  },
  "luminance": 0.03219
}

Semantic roles & 50–950 ramp

primary
#3E1F72
secondary
#82A647
accent
#E047A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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