#3E1670#3E1670

#3E1670 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 297.8°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#3E1670
RGBrgb(62, 22, 112)
HSLhsl(267, 67%, 26%)
HSVhsv(267, 80%, 44%)
CMYKcmyk(44.6%, 80.4%, 0%, 56.1%)
CIE-LABlab(19.09, 38.54, -44.13)
CIE-LCHlch(19.09, 58.59, 311.13°)
OKLaboklab(32% 0.0666 -0.1263)
OKLCHoklch(32% 0.143 297.8)
XYZxyz(5.1974, 2.7677, 15.5865)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1670 #487016
analogous
#161B70 #3E1670 #6B1670
triadic
#3E1670 #703E16 #16703E
tetradic
#3E1670 #70161B #487016 #16706B
square
#3E1670 #70161B #487016 #16706B
split-complementary
#3E1670 #706B16 #1B7016
monochromatic
#0E051A #220C3D #3E1670 #5A20A3 #772BD5

Accessibility & contrast

On white

13.52
#3E1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1670
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1670#FFFFFF#000000##FFFFFF
##3E16701.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#312E42
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e1670;
/* rgb */ color: rgb(62, 22, 112);
/* oklch */ color: oklch(32.0% 0.143 297.8);
Tailwind
colors: {
  custom: {
    50: '#79589a',
    500: '#3e1670',
    950: '#000000',
  },
}
SCSS
$custom: #3e1670;
$custom-light: #79589a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1670",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 266.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31995,
    "c": 0.14278,
    "h": 297.8
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#3E1670
secondary
#77A63C
accent
#EA3E9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1670

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

Preview Lab → · Contrast checker → · Palette generator →

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