#3E2170#3E2170

#3E2170 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.129 H 295.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#3E2170
RGBrgb(62, 33, 112)
HSLhsl(262, 54%, 28%)
HSVhsv(262, 71%, 44%)
CMYKcmyk(44.6%, 70.5%, 0%, 56.1%)
CIE-LABlab(21.14, 32.78, -40.78)
CIE-LCHlch(21.14, 52.32, 308.79°)
OKLaboklab(33.45% 0.0553 -0.1165)
OKLCHoklch(33.45% 0.129 295.4)
XYZxyz(5.4543, 3.2816, 15.6721)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2170 #537021
analogous
#212B70 #3E2170 #652170
triadic
#3E2170 #703E21 #21703E
tetradic
#3E2170 #70212B #537021 #217065
square
#3E2170 #70212B #537021 #217065
split-complementary
#3E2170 #706521 #2B7021
monochromatic
#0D0718 #241341 #3E2170 #582F9F #7444C8

Accessibility & contrast

On white

12.68
#3E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#3E2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2170
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2170#FFFFFF#000000##FFFFFF
##3E21701.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#313445
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3e2170;
/* rgb */ color: rgb(62, 33, 112);
/* oklch */ color: oklch(33.4% 0.129 295.4);
Tailwind
colors: {
  custom: {
    50: '#785e9a',
    500: '#3e2170',
    950: '#000000',
  },
}
SCSS
$custom: #3e2170;
$custom-light: #785e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2170",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 262.025,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33448,
    "c": 0.12899,
    "h": 295.4
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#3E2170
secondary
#82A449
accent
#DE4AA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E2170

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

Preview Lab → · Contrast checker → · Palette generator →

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