#3F2195#3F2195

#3F2195 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.175 H 286.1°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#3F2195
RGBrgb(63, 33, 149)
HSLhsl(256, 64%, 36%)
HSVhsv(256, 78%, 58%)
CMYKcmyk(57.7%, 77.9%, 0%, 41.6%)
CIE-LABlab(24.68, 43.92, -58.30)
CIE-LCHlch(24.68, 72.99, 306.99°)
OKLaboklab(37.04% 0.0483 -0.1679)
OKLCHoklch(37.04% 0.175 286.1)
XYZxyz(8.0169, 4.3139, 28.8382)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F2195 #779521
analogous
#213D95 #3F2195 #792195
triadic
#3F2195 #953F21 #21953F
tetradic
#3F2195 #95213D #779521 #219579
square
#3F2195 #95213D #779521 #219579
split-complementary
#3F2195 #957921 #3D9521
monochromatic
#150B31 #2A1663 #3F2195 #542CC7 #7957DA

Accessibility & contrast

On white

11.27
#3F2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3F2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F2195
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F2195#FFFFFF#000000##FFFFFF
##3F21951.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f2195;
/* rgb */ color: rgb(63, 33, 149);
/* oklch */ color: oklch(37.0% 0.175 286.1);
Tailwind
colors: {
  custom: {
    50: '#7f60b5',
    500: '#3f2195',
    950: '#000000',
  },
}
SCSS
$custom: #3f2195;
$custom-light: #7f60b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f2195",
  "rgb": {
    "r": 63,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 255.517,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.17468,
    "h": 286.1
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#3F2195
secondary
#A2BE54
accent
#E741BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F2195

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

Preview Lab → · Contrast checker → · Palette generator →

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