#3F2AA6#3F2AA6

#3F2AA6 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.186 H 281.6°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#3F2AA6
RGBrgb(63, 42, 166)
HSLhsl(250, 60%, 41%)
HSVhsv(250, 75%, 65%)
CMYKcmyk(62%, 74.7%, 0%, 34.9%)
CIE-LABlab(28.02, 44.38, -63.17)
CIE-LCHlch(28.02, 77.21, 305.09°)
OKLaboklab(39.9% 0.0375 -0.1822)
OKLCHoklch(39.9% 0.186 281.6)
XYZxyz(9.7586, 5.4652, 36.6096)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2AA6 #91A62A
analogous
#2A53A6 #3F2AA6 #7D2AA6
triadic
#3F2AA6 #A63F2A #2AA63F
tetradic
#3F2AA6 #A62A53 #91A62A #2AA67D
square
#3F2AA6 #A62A53 #91A62A #2AA67D
split-complementary
#3F2AA6 #A67D2A #53A62A
monochromatic
#1A1144 #2C1E75 #3F2AA6 #573FCE #8270DB

Accessibility & contrast

On white

10.03
#3F2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3F2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2AA6
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2AA6#FFFFFF#000000##FFFFFF
##3F2AA61.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f2aa6;
/* rgb */ color: rgb(63, 42, 166);
/* oklch */ color: oklch(39.9% 0.186 281.6);
Tailwind
colors: {
  custom: {
    50: '#8166c2',
    500: '#3f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #3f2aa6;
$custom-light: #8166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2aa6",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 250.161,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.186,
    "h": 281.6
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#3F2AA6
secondary
#B3C26A
accent
#E345C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #3F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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