#3E1462#3E1462

#3E1462 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.129 H 304.1°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#3E1462
RGBrgb(62, 20, 98)
HSLhsl(272, 66%, 23%)
HSVhsv(272, 80%, 38%)
CMYKcmyk(36.7%, 79.6%, 0%, 61.6%)
CIE-LABlab(17.49, 35.74, -37.57)
CIE-LCHlch(17.49, 51.85, 313.57°)
OKLaboklab(30.48% 0.0723 -0.107)
OKLCHoklch(30.48% 0.129 304.1)
XYZxyz(4.4409, 2.4063, 11.7834)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1462 #386214
analogous
#171462 #3E1462 #62145F
triadic
#3E1462 #623E14 #14623E
tetradic
#3E1462 #621714 #386214 #145F62
square
#3E1462 #621714 #386214 #145F62
split-complementary
#3E1462 #5F6214 #146217
monochromatic
#100519 #1E0A2F #3E1462 #5E1E95 #7E29C8

Accessibility & contrast

On white

14.18
#3E1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1462
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1462#FFFFFF#000000##FFFFFF
##3E14621.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#37283A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3e1462;
/* rgb */ color: rgb(62, 20, 98);
/* oklch */ color: oklch(30.5% 0.129 304.1);
Tailwind
colors: {
  custom: {
    50: '#77568f',
    500: '#3e1462',
    950: '#000000',
  },
}
SCSS
$custom: #3e1462;
$custom-light: #77568f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1462",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 272.308,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30478,
    "c": 0.12917,
    "h": 304.1
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#3E1462
secondary
#659938
accent
#E93F8D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1462

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

Preview Lab → · Contrast checker → · Palette generator →

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