#3F2C8E#3F2C8E

#3F2C8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.153 H 285.3°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3F2C8E
RGBrgb(63, 44, 142)
HSLhsl(252, 53%, 36%)
HSVhsv(252, 69%, 56%)
CMYKcmyk(55.6%, 69%, 0%, 44.3%)
CIE-LABlab(26.19, 35.73, -51.50)
CIE-LCHlch(26.19, 62.68, 304.75°)
OKLaboklab(37.91% 0.0406 -0.148)
OKLCHoklch(37.91% 0.153 285.3)
XYZxyz(7.8316, 4.8107, 26.1018)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2C8E #7B8E2C
analogous
#2C4A8E #3F2C8E #702C8E
triadic
#3F2C8E #8E3F2C #2C8E3F
tetradic
#3F2C8E #8E2C4A #7B8E2C #2C8E70
square
#3F2C8E #8E2C4A #7B8E2C #2C8E70
split-complementary
#3F2C8E #8E702C #4A8E2C
monochromatic
#160F31 #2A1E5F #3F2C8E #543ABD #7A65CF

Accessibility & contrast

On white

10.70
#3F2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3F2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2C8E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2C8E#FFFFFF#000000##FFFFFF
##3F2C8E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#1D4559
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2c8e;
/* rgb */ color: rgb(63, 44, 142);
/* oklch */ color: oklch(37.9% 0.153 285.3);
Tailwind
colors: {
  custom: {
    50: '#7c67b0',
    500: '#3f2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #3f2c8e;
$custom-light: #7c67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2c8e",
  "rgb": {
    "r": 63,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 251.633,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37907,
    "c": 0.15347,
    "h": 285.3
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#3F2C8E
secondary
#A5B660
accent
#DC4CC0
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3F2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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