#3F2295#3F2295

#3F2295 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.174 H 285.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3F2295
RGBrgb(63, 34, 149)
HSLhsl(255, 63%, 36%)
HSVhsv(255, 77%, 58%)
CMYKcmyk(57.7%, 77.2%, 0%, 41.6%)
CIE-LABlab(24.86, 43.41, -58.01)
CIE-LCHlch(24.86, 72.45, 306.81°)
OKLaboklab(37.16% 0.0476 -0.167)
OKLCHoklch(37.16% 0.174 285.9)
XYZxyz(8.0451, 4.3703, 28.8476)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2295 #789522
analogous
#223F95 #3F2295 #782295
triadic
#3F2295 #953F22 #22953F
tetradic
#3F2295 #95223F #789522 #229578
square
#3F2295 #95223F #789522 #229578
split-complementary
#3F2295 #957822 #3F9522
monochromatic
#150B31 #2A1763 #3F2295 #542DC7 #7958D9

Accessibility & contrast

On white

11.20
#3F2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3F2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2295
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2295#FFFFFF#000000##FFFFFF
##3F22951.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#15435A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3f2295;
/* rgb */ color: rgb(63, 34, 149);
/* oklch */ color: oklch(37.2% 0.174 285.9);
Tailwind
colors: {
  custom: {
    50: '#7e61b5',
    500: '#3f2295',
    950: '#000000',
  },
}
SCSS
$custom: #3f2295;
$custom-light: #7e61b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2295",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 255.13,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37163,
    "c": 0.17367,
    "h": 285.9
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#3F2295
secondary
#A3BD56
accent
#E642BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2295

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

Preview Lab → · Contrast checker → · Palette generator →

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