#3F2291#3F2291

#3F2291 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.169 H 286.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3F2291
RGBrgb(63, 34, 145)
HSLhsl(256, 62%, 35%)
HSVhsv(256, 77%, 57%)
CMYKcmyk(56.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(24.46, 42.22, -56.19)
CIE-LCHlch(24.46, 70.28, 306.93°)
OKLaboklab(36.77% 0.0487 -0.1617)
OKLCHoklch(36.77% 0.169 286.8)
XYZxyz(7.7312, 4.2447, 27.1945)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2291 #749122
analogous
#223C91 #3F2291 #772291
triadic
#3F2291 #913F22 #22913F
tetradic
#3F2291 #91223C #749122 #229177
square
#3F2291 #91223C #749122 #229177
split-complementary
#3F2291 #917722 #3C9122
monochromatic
#140B2E #29165F #3F2291 #552EC3 #7856D7

Accessibility & contrast

On white

11.36
#3F2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2291
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2291#FFFFFF#000000##FFFFFF
##3F22911.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00378F
Tritanopia (blue-blind)
#1A4158
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f2291;
/* rgb */ color: rgb(63, 34, 145);
/* oklch */ color: oklch(36.8% 0.169 286.8);
Tailwind
colors: {
  custom: {
    50: '#7e61b2',
    500: '#3f2291',
    950: '#000000',
  },
}
SCSS
$custom: #3f2291;
$custom-light: #7e61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2291",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 255.676,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36766,
    "c": 0.16886,
    "h": 286.8
  },
  "luminance": 0.04245
}

Semantic roles & 50–950 ramp

primary
#3F2291
secondary
#A0BB53
accent
#E543BB
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2291

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

Preview Lab → · Contrast checker → · Palette generator →

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