#3F2AA8#3F2AA8

#3F2AA8 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.188 H 281.3°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#3F2AA8
RGBrgb(63, 42, 168)
HSLhsl(250, 60%, 41%)
HSVhsv(250, 75%, 66%)
CMYKcmyk(62.5%, 75%, 0%, 34.1%)
CIE-LABlab(28.22, 45.00, -64.06)
CIE-LCHlch(28.22, 78.28, 305.09°)
OKLaboklab(40.1% 0.037 -0.1848)
OKLCHoklch(40.1% 0.188 281.3)
XYZxyz(9.9435, 5.5391, 37.5834)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2AA8 #93A82A
analogous
#2A54A8 #3F2AA8 #7E2AA8
triadic
#3F2AA8 #A83F2A #2AA83F
tetradic
#3F2AA8 #A82A54 #93A82A #2AA87E
square
#3F2AA8 #A82A54 #93A82A #2AA87E
split-complementary
#3F2AA8 #A87E2A #54A82A
monochromatic
#1A1246 #2D1E77 #3F2AA8 #5840CF #8371DB

Accessibility & contrast

On white

9.96
#3F2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3F2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2AA8
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2AA8#FFFFFF#000000##FFFFFF
##3F2AA81.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003EA6
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f2aa8;
/* rgb */ color: rgb(63, 42, 168);
/* oklch */ color: oklch(40.1% 0.188 281.3);
Tailwind
colors: {
  custom: {
    50: '#8166c3',
    500: '#3f2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #3f2aa8;
$custom-light: #8166c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2aa8",
  "rgb": {
    "r": 63,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 250,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.18843,
    "h": 281.3
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#3F2AA8
secondary
#B4C36B
accent
#E345C9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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