#3B1F99#3B1F99

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

Color values

HEX#3B1F99
RGBrgb(59, 31, 153)
HSLhsl(254, 66%, 36%)
HSVhsv(254, 80%, 60%)
CMYKcmyk(61.4%, 79.7%, 0%, 40%)
CIE-LABlab(24.35, 45.58, -61.32)
CIE-LCHlch(24.35, 76.40, 306.62°)
OKLaboklab(36.83% 0.0423 -0.1768)
OKLCHoklch(36.83% 0.182 283.5)
XYZxyz(8.0416, 4.2091, 30.5195)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1F99 #7D991F
analogous
#1F4099 #3B1F99 #781F99
triadic
#3B1F99 #993B1F #1F993B
tetradic
#3B1F99 #991F40 #7D991F #1F9978
square
#3B1F99 #991F40 #7D991F #1F9978
split-complementary
#3B1F99 #99781F #40991F
monochromatic
#140A33 #271566 #3B1F99 #4F29CC #7556DD

Accessibility & contrast

On white

11.40
#3B1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3B1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1F99
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1F99#FFFFFF#000000##FFFFFF
##3B1F991.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3b1f99;
/* rgb */ color: rgb(59, 31, 153);
/* oklch */ color: oklch(36.8% 0.182 283.5);
Tailwind
colors: {
  custom: {
    50: '#7d5fb8',
    500: '#3b1f99',
    950: '#000000',
  },
}
SCSS
$custom: #3b1f99;
$custom-light: #7d5fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1f99",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 253.77,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36834,
    "c": 0.18178,
    "h": 283.5
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#3B1F99
secondary
#A7C054
accent
#E93FC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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