#3F1B95#3F1B95

#3F1B95 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.180 H 286.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#3F1B95
RGBrgb(63, 27, 149)
HSLhsl(258, 69%, 35%)
HSVhsv(258, 82%, 58%)
CMYKcmyk(57.7%, 81.9%, 0%, 41.6%)
CIE-LABlab(23.70, 46.74, -59.91)
CIE-LCHlch(23.70, 75.99, 307.96°)
OKLaboklab(36.36% 0.0524 -0.1725)
OKLCHoklch(36.36% 0.18 286.9)
XYZxyz(7.8650, 4.0101, 28.7875)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1B95 #71951B
analogous
#1B3495 #3F1B95 #7C1B95
triadic
#3F1B95 #953F1B #1B953F
tetradic
#3F1B95 #951B34 #71951B #1B957C
square
#3F1B95 #951B34 #71951B #1B957C
split-complementary
#3F1B95 #957C1B #34951B
monochromatic
#13082D #291261 #3F1B95 #5524C9 #774CDF

Accessibility & contrast

On white

11.65
#3F1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3F1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1B95
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1B95#FFFFFF#000000##FFFFFF
##3F1B951.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#164059
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3f1b95;
/* rgb */ color: rgb(63, 27, 149);
/* oklch */ color: oklch(36.4% 0.180 286.9);
Tailwind
colors: {
  custom: {
    50: '#7f5db5',
    500: '#3f1b95',
    950: '#000000',
  },
}
SCSS
$custom: #3f1b95;
$custom-light: #7f5db5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1b95",
  "rgb": {
    "r": 63,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 257.705,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36359,
    "c": 0.18029,
    "h": 286.9
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#3F1B95
secondary
#9EC14B
accent
#EC3CB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3F1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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