#3E1861#3E1861

#3E1861 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.123 H 303.7°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#3E1861
RGBrgb(62, 24, 97)
HSLhsl(271, 60%, 24%)
HSVhsv(271, 75%, 38%)
CMYKcmyk(36.1%, 75.3%, 0%, 62%)
CIE-LABlab(18.10, 33.50, -35.91)
CIE-LCHlch(18.10, 49.11, 313.01°)
OKLaboklab(30.88% 0.0682 -0.1022)
OKLCHoklch(30.88% 0.123 303.7)
XYZxyz(4.4704, 2.5405, 11.5618)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1861 #3B6118
analogous
#191861 #3E1861 #61185F
triadic
#3E1861 #613E18 #18613E
tetradic
#3E1861 #611918 #3B6118 #185F61
square
#3E1861 #611918 #3B6118 #185F61
split-complementary
#3E1861 #5F6118 #186119
monochromatic
#100619 #1F0C30 #3E1861 #5D2492 #7D30C3

Accessibility & contrast

On white

13.93
#3E1861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3E1861 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1861
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1861#FFFFFF#000000##FFFFFF
##3E18611.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002C5F
Tritanopia (blue-blind)
#37293A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3e1861;
/* rgb */ color: rgb(62, 24, 97);
/* oklch */ color: oklch(30.9% 0.123 303.7);
Tailwind
colors: {
  custom: {
    50: '#77588e',
    500: '#3e1861',
    950: '#000000',
  },
}
SCSS
$custom: #3e1861;
$custom-light: #77588e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1861",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 271.233,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30884,
    "c": 0.12285,
    "h": 303.7
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#3E1861
secondary
#69973D
accent
#E34491
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1861

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

Preview Lab → · Contrast checker → · Palette generator →

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