#3E1F75#3E1F75

#3E1F75 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.138 H 294.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#3E1F75
RGBrgb(62, 31, 117)
HSLhsl(262, 58%, 29%)
HSVhsv(262, 74%, 46%)
CMYKcmyk(47%, 73.5%, 0%, 54.1%)
CIE-LABlab(21.16, 35.37, -43.96)
CIE-LCHlch(21.16, 56.42, 308.82°)
OKLaboklab(33.6% 0.0566 -0.1259)
OKLCHoklch(33.6% 0.138 294.2)
XYZxyz(5.6866, 3.2883, 17.1613)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F75 #56751F
analogous
#1F2B75 #3E1F75 #691F75
triadic
#3E1F75 #753E1F #1F753E
tetradic
#3E1F75 #751F2B #56751F #1F7569
square
#3E1F75 #751F2B #56751F #1F7569
split-complementary
#3E1F75 #75691F #2B751F
monochromatic
#0D0618 #241245 #3E1F75 #582CA5 #7442CD

Accessibility & contrast

On white

12.67
#3E1F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E1F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F75
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F75#FFFFFF#000000##FFFFFF
##3E1F751.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#2E3547
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e1f75;
/* rgb */ color: rgb(62, 31, 117);
/* oklch */ color: oklch(33.6% 0.138 294.2);
Tailwind
colors: {
  custom: {
    50: '#795d9e',
    500: '#3e1f75',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f75;
$custom-light: #795d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f75",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 261.628,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33601,
    "c": 0.138,
    "h": 294.2
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#3E1F75
secondary
#86A947
accent
#E146AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1F75

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

Preview Lab → · Contrast checker → · Palette generator →

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