#3E1F74#3E1F74

#3E1F74 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.137 H 294.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#3E1F74
RGBrgb(62, 31, 116)
HSLhsl(262, 58%, 29%)
HSVhsv(262, 73%, 45%)
CMYKcmyk(46.6%, 73.3%, 0%, 54.5%)
CIE-LABlab(21.07, 35.08, -43.46)
CIE-LCHlch(21.07, 55.85, 308.91°)
OKLaboklab(33.51% 0.0568 -0.1244)
OKLCHoklch(33.51% 0.137 294.5)
XYZxyz(5.6281, 3.2649, 16.8533)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F74 #55741F
analogous
#1F2B74 #3E1F74 #691F74
triadic
#3E1F74 #743E1F #1F743E
tetradic
#3E1F74 #741F2B #55741F #1F7469
square
#3E1F74 #741F2B #55741F #1F7469
split-complementary
#3E1F74 #74691F #2B741F
monochromatic
#0D0618 #241244 #3E1F74 #582CA4 #7441CC

Accessibility & contrast

On white

12.70
#3E1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3E1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F74
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F74#FFFFFF#000000##FFFFFF
##3E1F741.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#2F3447
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1f74;
/* rgb */ color: rgb(62, 31, 116);
/* oklch */ color: oklch(33.5% 0.137 294.5);
Tailwind
colors: {
  custom: {
    50: '#795d9d',
    500: '#3e1f74',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f74;
$custom-light: #795d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f74",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 261.882,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33511,
    "c": 0.13674,
    "h": 294.5
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#3E1F74
secondary
#84A847
accent
#E147A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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