#3F2C8A#3F2C8A

#3F2C8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.5% C 0.148 H 286.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3F2C8A
RGBrgb(63, 44, 138)
HSLhsl(252, 52%, 36%)
HSVhsv(252, 68%, 54%)
CMYKcmyk(54.3%, 68.1%, 0%, 45.9%)
CIE-LABlab(25.84, 34.46, -49.59)
CIE-LCHlch(25.84, 60.39, 304.80°)
OKLaboklab(37.55% 0.0412 -0.1424)
OKLCHoklch(37.55% 0.148 286.1)
XYZxyz(7.5367, 4.6927, 24.5485)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2C8A #778A2C
analogous
#2C488A #3F2C8A #6E2C8A
triadic
#3F2C8A #8A3F2C #2C8A3F
tetradic
#3F2C8A #8A2C48 #778A2C #2C8A6E
square
#3F2C8A #8A2C48 #778A2C #2C8A6E
split-complementary
#3F2C8A #8A6E2C #488A2C
monochromatic
#150E2D #2A1D5C #3F2C8A #543BB8 #7963CD

Accessibility & contrast

On white

10.83
#3F2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2C8A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2C8A#FFFFFF#000000##FFFFFF
##3F2C8A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#214457
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2c8a;
/* rgb */ color: rgb(63, 44, 138);
/* oklch */ color: oklch(37.5% 0.148 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c66ad',
    500: '#3f2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #3f2c8a;
$custom-light: #7c66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2c8a",
  "rgb": {
    "r": 63,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 252.128,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.14822,
    "h": 286.1
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#3F2C8A
secondary
#A2B45E
accent
#DB4DBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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