#3F2AA5#3F2AA5

#3F2AA5 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.185 H 281.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#3F2AA5
RGBrgb(63, 42, 165)
HSLhsl(250, 59%, 41%)
HSVhsv(250, 75%, 65%)
CMYKcmyk(61.8%, 74.5%, 0%, 35.3%)
CIE-LABlab(27.92, 44.07, -62.73)
CIE-LCHlch(27.92, 76.67, 305.09°)
OKLaboklab(39.8% 0.0377 -0.1809)
OKLCHoklch(39.8% 0.185 281.8)
XYZxyz(9.6673, 5.4286, 36.1284)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2AA5 #90A52A
analogous
#2A52A5 #3F2AA5 #7C2AA5
triadic
#3F2AA5 #A53F2A #2AA53F
tetradic
#3F2AA5 #A52A52 #90A52A #2AA57C
square
#3F2AA5 #A52A52 #90A52A #2AA57C
split-complementary
#3F2AA5 #A57C2A #52A52A
monochromatic
#1A1143 #2C1E74 #3F2AA5 #573ECE #816FDA

Accessibility & contrast

On white

10.07
#3F2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2AA5
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2AA5#FFFFFF#000000##FFFFFF
##3F2AA51.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f2aa5;
/* rgb */ color: rgb(63, 42, 165);
/* oklch */ color: oklch(39.8% 0.185 281.8);
Tailwind
colors: {
  custom: {
    50: '#8166c1',
    500: '#3f2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #3f2aa5;
$custom-light: #8166c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2aa5",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 250.244,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39798,
    "c": 0.18479,
    "h": 281.8
  },
  "luminance": 0.05429
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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