#3F2AA7#3F2AA7

#3F2AA7 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.187 H 281.5°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#3F2AA7
RGBrgb(63, 42, 167)
HSLhsl(250, 60%, 41%)
HSVhsv(250, 75%, 65%)
CMYKcmyk(62.3%, 74.9%, 0%, 34.5%)
CIE-LABlab(28.12, 44.69, -63.62)
CIE-LCHlch(28.12, 77.75, 305.09°)
OKLaboklab(40% 0.0372 -0.1835)
OKLCHoklch(40% 0.187 281.5)
XYZxyz(9.8507, 5.5020, 37.0946)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2AA7 #92A72A
analogous
#2A53A7 #3F2AA7 #7D2AA7
triadic
#3F2AA7 #A73F2A #2AA73F
tetradic
#3F2AA7 #A72A53 #92A72A #2AA77D
square
#3F2AA7 #A72A53 #92A72A #2AA77D
split-complementary
#3F2AA7 #A77D2A #53A72A
monochromatic
#1A1145 #2D1E76 #3F2AA7 #573FCF #8270DB

Accessibility & contrast

On white

10.00
#3F2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3F2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2AA7
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2AA7#FFFFFF#000000##FFFFFF
##3F2AA71.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003EA5
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f2aa7;
/* rgb */ color: rgb(63, 42, 167);
/* oklch */ color: oklch(40.0% 0.187 281.5);
Tailwind
colors: {
  custom: {
    50: '#8166c2',
    500: '#3f2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #3f2aa7;
$custom-light: #8166c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2aa7",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 250.08,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39997,
    "c": 0.18722,
    "h": 281.5
  },
  "luminance": 0.05503
}

Semantic roles & 50–950 ramp

primary
#3F2AA7
secondary
#B3C26B
accent
#E345C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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