#3F2B8D#3F2B8D

#3F2B8D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.153 H 285.8°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3F2B8D
RGBrgb(63, 43, 141)
HSLhsl(252, 53%, 36%)
HSVhsv(252, 70%, 55%)
CMYKcmyk(55.3%, 69.5%, 0%, 44.7%)
CIE-LABlab(25.88, 36.00, -51.38)
CIE-LCHlch(25.88, 62.74, 305.02°)
OKLaboklab(37.66% 0.0417 -0.1476)
OKLCHoklch(37.66% 0.153 285.8)
XYZxyz(7.7201, 4.7072, 25.6959)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2B8D #798D2B
analogous
#2B488D #3F2B8D #702B8D
triadic
#3F2B8D #8D3F2B #2B8D3F
tetradic
#3F2B8D #8D2B48 #798D2B #2B8D70
square
#3F2B8D #8D2B48 #798D2B #2B8D70
split-complementary
#3F2B8D #8D702B #488D2B
monochromatic
#150E2F #2A1D5E #3F2B8D #5439BC #7963CF

Accessibility & contrast

On white

10.82
#3F2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F2B8D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2B8D#FFFFFF#000000##FFFFFF
##3F2B8D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#1E4458
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f2b8d;
/* rgb */ color: rgb(63, 43, 141);
/* oklch */ color: oklch(37.7% 0.153 285.8);
Tailwind
colors: {
  custom: {
    50: '#7c66af',
    500: '#3f2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #3f2b8d;
$custom-light: #7c66af;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2b8d",
  "rgb": {
    "r": 63,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 252.245,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37661,
    "c": 0.15342,
    "h": 285.8
  },
  "luminance": 0.04708
}

Semantic roles & 50–950 ramp

primary
#3F2B8D
secondary
#A4B65E
accent
#DD4BBF
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3F2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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