#3E1863#3E1863

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

Color values

HEX#3E1863
RGBrgb(62, 24, 99)
HSLhsl(270, 61%, 24%)
HSVhsv(270, 76%, 39%)
CMYKcmyk(37.4%, 75.8%, 0%, 61.2%)
CIE-LABlab(18.27, 34.04, -36.96)
CIE-LCHlch(18.27, 50.25, 312.64°)
OKLaboklab(31.06% 0.0678 -0.1052)
OKLCHoklch(31.06% 0.125 302.8)
XYZxyz(4.5648, 2.5782, 12.0591)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1863 #3D6318
analogous
#191863 #3E1863 #631863
triadic
#3E1863 #633E18 #18633E
tetradic
#3E1863 #631918 #3D6318 #186363
square
#3E1863 #631918 #3D6318 #186363
split-complementary
#3E1863 #636318 #186319
monochromatic
#0F0619 #1F0C32 #3E1863 #5D2494 #7C30C6

Accessibility & contrast

On white

13.86
#3E1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1863
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1863#FFFFFF#000000##FFFFFF
##3E18631.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1863;
/* rgb */ color: rgb(62, 24, 99);
/* oklch */ color: oklch(31.1% 0.125 302.8);
Tailwind
colors: {
  custom: {
    50: '#775990',
    500: '#3e1863',
    950: '#000000',
  },
}
SCSS
$custom: #3e1863;
$custom-light: #775990;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1863",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 270.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31056,
    "c": 0.12521,
    "h": 302.8
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#3E1863
secondary
#6B993E
accent
#E44493
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3E1863

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

Preview Lab → · Contrast checker → · Palette generator →

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