#3E1865#3E1865

#3E1865 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.128 H 301.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#3E1865
RGBrgb(62, 24, 101)
HSLhsl(270, 62%, 25%)
HSVhsv(270, 76%, 40%)
CMYKcmyk(38.6%, 76.2%, 0%, 60.4%)
CIE-LABlab(18.44, 34.57, -38.00)
CIE-LCHlch(18.44, 51.38, 312.30°)
OKLaboklab(31.23% 0.0674 -0.1083)
OKLCHoklch(31.23% 0.128 301.9)
XYZxyz(4.6616, 2.6170, 12.5689)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1865 #3F6518
analogous
#181965 #3E1865 #651865
triadic
#3E1865 #653E18 #18653E
tetradic
#3E1865 #651819 #3F6518 #186565
square
#3E1865 #651819 #3F6518 #186565
split-complementary
#3E1865 #656518 #196518
monochromatic
#0F0619 #200C34 #3E1865 #5C2496 #7B30C8

Accessibility & contrast

On white

13.78
#3E1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1865
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1865#FFFFFF#000000##FFFFFF
##3E18651.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#362B3D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e1865;
/* rgb */ color: rgb(62, 24, 101);
/* oklch */ color: oklch(31.2% 0.128 301.9);
Tailwind
colors: {
  custom: {
    50: '#775992',
    500: '#3e1865',
    950: '#000000',
  },
}
SCSS
$custom: #3e1865;
$custom-light: #775992;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1865",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 269.61,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31231,
    "c": 0.12758,
    "h": 301.9
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#3E1865
secondary
#6D9B3E
accent
#E54395
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1865

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

Preview Lab → · Contrast checker → · Palette generator →

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