#3E1864#3E1864

#3E1864 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.126 H 302.3°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#3E1864
RGBrgb(62, 24, 100)
HSLhsl(270, 61%, 24%)
HSVhsv(270, 76%, 39%)
CMYKcmyk(38%, 76%, 0%, 60.8%)
CIE-LABlab(18.35, 34.30, -37.48)
CIE-LCHlch(18.35, 50.81, 312.46°)
OKLaboklab(31.14% 0.0676 -0.1068)
OKLCHoklch(31.14% 0.126 302.3)
XYZxyz(4.6129, 2.5975, 12.3125)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1864 #3E6418
analogous
#181864 #3E1864 #641864
triadic
#3E1864 #643E18 #18643E
tetradic
#3E1864 #641818 #3E6418 #186464
square
#3E1864 #641818 #3E6418 #186464
split-complementary
#3E1864 #646418 #186418
monochromatic
#0F0619 #1F0C33 #3E1864 #5D2495 #7B30C7

Accessibility & contrast

On white

13.82
#3E1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3E1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1864
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1864#FFFFFF#000000##FFFFFF
##3E18641.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#362A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1864;
/* rgb */ color: rgb(62, 24, 100);
/* oklch */ color: oklch(31.1% 0.126 302.3);
Tailwind
colors: {
  custom: {
    50: '#775991',
    500: '#3e1864',
    950: '#000000',
  },
}
SCSS
$custom: #3e1864;
$custom-light: #775991;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1864",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 270,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31143,
    "c": 0.1264,
    "h": 302.3
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#3E1864
secondary
#6C9A3E
accent
#E44394
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040D
muted
#7B797D

Preview Lab

Preview with #3E1864

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

Preview Lab → · Contrast checker → · Palette generator →

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