#3E1870#3E1870

#3E1870 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.141 H 297.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#3E1870
RGBrgb(62, 24, 112)
HSLhsl(266, 65%, 27%)
HSVhsv(266, 79%, 44%)
CMYKcmyk(44.6%, 78.6%, 0%, 56.1%)
CIE-LABlab(19.42, 37.59, -43.58)
CIE-LCHlch(19.42, 57.55, 310.77°)
OKLaboklab(32.23% 0.0648 -0.1247)
OKLCHoklch(32.23% 0.141 297.5)
XYZxyz(5.2371, 2.8472, 15.5997)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1870 #4A7018
analogous
#181E70 #3E1870 #6A1870
triadic
#3E1870 #703E18 #18703E
tetradic
#3E1870 #70181E #4A7018 #18706A
square
#3E1870 #70181E #4A7018 #18706A
split-complementary
#3E1870 #706A18 #1E7018
monochromatic
#0E0519 #220D3E #3E1870 #5A23A2 #7630D3

Accessibility & contrast

On white

13.38
#3E1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3E1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1870
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1870#FFFFFF#000000##FFFFFF
##3E18701.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002E6E
Tritanopia (blue-blind)
#312F43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1870;
/* rgb */ color: rgb(62, 24, 112);
/* oklch */ color: oklch(32.2% 0.141 297.5);
Tailwind
colors: {
  custom: {
    50: '#79599a',
    500: '#3e1870',
    950: '#000000',
  },
}
SCSS
$custom: #3e1870;
$custom-light: #79599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1870",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 265.909,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.14053,
    "h": 297.5
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#3E1870
secondary
#79A53E
accent
#E8409F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1870

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

Preview Lab → · Contrast checker → · Palette generator →

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