#3E2177#3E2177

#3E2177 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.138 H 293.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#3E2177
RGBrgb(62, 33, 119)
HSLhsl(260, 57%, 30%)
HSVhsv(260, 72%, 47%)
CMYKcmyk(47.9%, 72.3%, 0%, 53.3%)
CIE-LABlab(21.74, 34.85, -44.30)
CIE-LCHlch(21.74, 56.36, 308.19°)
OKLaboklab(34.07% 0.0541 -0.1269)
OKLCHoklch(34.07% 0.138 293.1)
XYZxyz(5.8593, 3.4436, 17.8051)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2177 #5A7721
analogous
#212F77 #3E2177 #692177
triadic
#3E2177 #773E21 #21773E
tetradic
#3E2177 #77212F #5A7721 #217769
square
#3E2177 #77212F #5A7721 #217769
split-complementary
#3E2177 #776921 #2F7721
monochromatic
#0C0718 #251447 #3E2177 #572EA7 #7447CC

Accessibility & contrast

On white

12.43
#3E2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3E2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2177
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2177#FFFFFF#000000##FFFFFF
##3E21771.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#2D3749
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e2177;
/* rgb */ color: rgb(62, 33, 119);
/* oklch */ color: oklch(34.1% 0.138 293.1);
Tailwind
colors: {
  custom: {
    50: '#795f9f',
    500: '#3e2177',
    950: '#000000',
  },
}
SCSS
$custom: #3e2177;
$custom-light: #795f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2177",
  "rgb": {
    "r": 62,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 260.233,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34066,
    "c": 0.13793,
    "h": 293.1
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#3E2177
secondary
#8AAA4A
accent
#E048AD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #3E2177

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

Preview Lab → · Contrast checker → · Palette generator →

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