#3E1261#3E1261

#3E1261 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.130 H 304.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#3E1261
RGBrgb(62, 18, 97)
HSLhsl(273, 69%, 23%)
HSVhsv(273, 81%, 38%)
CMYKcmyk(36.1%, 81.4%, 0%, 62%)
CIE-LABlab(17.08, 36.39, -37.57)
CIE-LCHlch(17.08, 52.30, 314.09°)
OKLaboklab(30.17% 0.0746 -0.107)
OKLCHoklch(30.17% 0.13 304.9)
XYZxyz(4.3601, 2.3198, 11.5250)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1261 #356112
analogous
#171261 #3E1261 #61125C
triadic
#3E1261 #613E12 #12613E
tetradic
#3E1261 #611712 #356112 #125C61
square
#3E1261 #611712 #356112 #125C61
split-complementary
#3E1261 #5C6112 #126117
monochromatic
#10051A #1D082D #3E1261 #5F1C95 #8025C8

Accessibility & contrast

On white

14.34
#3E1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3E1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1261
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1261#FFFFFF#000000##FFFFFF
##3E12611.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#372639
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3e1261;
/* rgb */ color: rgb(62, 18, 97);
/* oklch */ color: oklch(30.2% 0.130 304.9);
Tailwind
colors: {
  custom: {
    50: '#77558f',
    500: '#3e1261',
    950: '#000000',
  },
}
SCSS
$custom: #3e1261;
$custom-light: #77558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1261",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 273.418,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30165,
    "c": 0.13042,
    "h": 304.9
  },
  "luminance": 0.0232
}

Semantic roles & 50–950 ramp

primary
#3E1261
secondary
#629936
accent
#EC3C8A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1261

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

Preview Lab → · Contrast checker → · Palette generator →

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