#3F2180#3F2180

#3F2180 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.149 H 291.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#3F2180
RGBrgb(63, 33, 128)
HSLhsl(259, 59%, 32%)
HSVhsv(259, 74%, 50%)
CMYKcmyk(50.8%, 74.2%, 0%, 49.8%)
CIE-LABlab(22.66, 37.70, -48.51)
CIE-LCHlch(22.66, 61.44, 307.86°)
OKLaboklab(35% 0.0538 -0.1392)
OKLCHoklch(35% 0.149 291.1)
XYZxyz(6.4889, 3.7027, 20.7907)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2180 #628021
analogous
#213380 #3F2180 #6F2180
triadic
#3F2180 #803F21 #21803F
tetradic
#3F2180 #802133 #628021 #21806F
square
#3F2180 #802133 #628021 #21806F
split-complementary
#3F2180 #806F21 #338021
monochromatic
#0F081F #27144F #3F2180 #572EB1 #754BD1

Accessibility & contrast

On white

12.06
#3F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3F2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2180
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2180#FFFFFF#000000##FFFFFF
##3F21801.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#293A4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3f2180;
/* rgb */ color: rgb(63, 33, 128);
/* oklch */ color: oklch(35.0% 0.149 291.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fa6',
    500: '#3f2180',
    950: '#000000',
  },
}
SCSS
$custom: #3f2180;
$custom-light: #7b5fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2180",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 258.947,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35001,
    "c": 0.14921,
    "h": 291.1
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#3F2180
secondary
#92B34A
accent
#E246B1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3F2180

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

Preview Lab → · Contrast checker → · Palette generator →

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