#3E1266#3E1266

#3E1266 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.136 H 302.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#3E1266
RGBrgb(62, 18, 102)
HSLhsl(271, 70%, 24%)
HSVhsv(271, 82%, 40%)
CMYKcmyk(39.2%, 82.4%, 0%, 60%)
CIE-LABlab(17.53, 37.67, -40.14)
CIE-LCHlch(17.53, 55.05, 313.19°)
OKLaboklab(30.62% 0.0732 -0.1145)
OKLCHoklch(30.62% 0.136 302.6)
XYZxyz(4.6006, 2.4160, 12.7918)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1266 #3A6612
analogous
#141266 #3E1266 #661264
triadic
#3E1266 #663E12 #12663E
tetradic
#3E1266 #661412 #3A6612 #126466
square
#3E1266 #661412 #3A6612 #126466
split-complementary
#3E1266 #646612 #126614
monochromatic
#10051A #1E0932 #3E1266 #5E1B9A #7D24CE

Accessibility & contrast

On white

14.16
#3E1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3E1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1266
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1266#FFFFFF#000000##FFFFFF
##3E12661.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#36283C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1266;
/* rgb */ color: rgb(62, 18, 102);
/* oklch */ color: oklch(30.6% 0.136 302.6);
Tailwind
colors: {
  custom: {
    50: '#785692',
    500: '#3e1266',
    950: '#000000',
  },
}
SCSS
$custom: #3e1266;
$custom-light: #785692;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1266",
  "rgb": {
    "r": 62,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 271.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30621,
    "c": 0.13594,
    "h": 302.6
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#3E1266
secondary
#679E36
accent
#ED3B90
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E1266

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

Preview Lab → · Contrast checker → · Palette generator →

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