#3B1F8A#3B1F8A

#3B1F8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.164 H 286.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#3B1F8A
RGBrgb(59, 31, 138)
HSLhsl(256, 63%, 33%)
HSVhsv(256, 78%, 54%)
CMYKcmyk(57.2%, 77.5%, 0%, 45.9%)
CIE-LABlab(22.81, 41.10, -54.57)
CIE-LCHlch(22.81, 68.32, 306.99°)
OKLaboklab(35.29% 0.0467 -0.1571)
OKLCHoklch(35.29% 0.164 286.6)
XYZxyz(6.8797, 3.7444, 24.4001)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1F8A #6E8A1F
analogous
#1F388A #3B1F8A #701F8A
triadic
#3B1F8A #8A3B1F #1F8A3B
tetradic
#3B1F8A #8A1F38 #6E8A1F #1F8A70
square
#3B1F8A #8A1F38 #6E8A1F #1F8A70
split-complementary
#3B1F8A #8A701F #388A1F
monochromatic
#100926 #261458 #3B1F8A #502ABC #714CD7

Accessibility & contrast

On white

12.01
#3B1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3B1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1F8A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1F8A#FFFFFF#000000##FFFFFF
##3B1F8A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#173D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3b1f8a;
/* rgb */ color: rgb(59, 31, 138);
/* oklch */ color: oklch(35.3% 0.164 286.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ead',
    500: '#3b1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #3b1f8a;
$custom-light: #7b5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1f8a",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 255.701,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35292,
    "c": 0.16387,
    "h": 286.6
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#3B1F8A
secondary
#9DBA4B
accent
#E641BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3B1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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