#3E1F77#3E1F77

#3E1F77 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.140 H 293.6°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#3E1F77
RGBrgb(62, 31, 119)
HSLhsl(261, 59%, 29%)
HSVhsv(261, 74%, 47%)
CMYKcmyk(47.9%, 73.9%, 0%, 53.3%)
CIE-LABlab(21.34, 35.96, -44.95)
CIE-LCHlch(21.34, 57.56, 308.66°)
OKLaboklab(33.78% 0.0562 -0.1288)
OKLCHoklch(33.78% 0.14 293.6)
XYZxyz(5.8055, 3.3358, 17.7872)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F77 #58771F
analogous
#1F2C77 #3E1F77 #6A1F77
triadic
#3E1F77 #773E1F #1F773E
tetradic
#3E1F77 #771F2C #58771F #1F776A
square
#3E1F77 #771F2C #58771F #1F776A
split-complementary
#3E1F77 #776A1F #2C771F
monochromatic
#0D0618 #251246 #3E1F77 #572CA8 #7443CE

Accessibility & contrast

On white

12.60
#3E1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3E1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F77
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F77#FFFFFF#000000##FFFFFF
##3E1F771.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#2D3549
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1f77;
/* rgb */ color: rgb(62, 31, 119);
/* oklch */ color: oklch(33.8% 0.140 293.6);
Tailwind
colors: {
  custom: {
    50: '#795d9f',
    500: '#3e1f77',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f77;
$custom-light: #795d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f77",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 261.136,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33783,
    "c": 0.14049,
    "h": 293.6
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#3E1F77
secondary
#88AB47
accent
#E246AB
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #3E1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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