#3F2C8D#3F2C8D

#3F2C8D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.152 H 285.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#3F2C8D
RGBrgb(63, 44, 141)
HSLhsl(252, 52%, 36%)
HSVhsv(252, 69%, 55%)
CMYKcmyk(55.3%, 68.8%, 0%, 44.7%)
CIE-LABlab(26.10, 35.41, -51.03)
CIE-LCHlch(26.10, 62.11, 304.76°)
OKLaboklab(37.82% 0.0407 -0.1466)
OKLCHoklch(37.82% 0.152 285.5)
XYZxyz(7.7569, 4.7808, 25.7082)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2C8D #7A8D2C
analogous
#2C4A8D #3F2C8D #702C8D
triadic
#3F2C8D #8D3F2C #2C8D3F
tetradic
#3F2C8D #8D2C4A #7A8D2C #2C8D70
square
#3F2C8D #8D2C4A #7A8D2C #2C8D70
split-complementary
#3F2C8D #8D702C #4A8D2C
monochromatic
#150F30 #2A1D5E #3F2C8D #543BBC #7965CF

Accessibility & contrast

On white

10.74
#3F2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2C8D
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2C8D#FFFFFF#000000##FFFFFF
##3F2C8D1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#1E4558
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f2c8d;
/* rgb */ color: rgb(63, 44, 141);
/* oklch */ color: oklch(37.8% 0.152 285.5);
Tailwind
colors: {
  custom: {
    50: '#7c66af',
    500: '#3f2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #3f2c8d;
$custom-light: #7c66af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2c8d",
  "rgb": {
    "r": 63,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 251.753,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37817,
    "c": 0.15216,
    "h": 285.5
  },
  "luminance": 0.04781
}

Semantic roles & 50–950 ramp

primary
#3F2C8D
secondary
#A4B560
accent
#DC4CC0
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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