#3B1FA8#3B1FA8

#3B1FA8 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.199 H 280.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#3B1FA8
RGBrgb(59, 31, 168)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 82%, 66%)
CMYKcmyk(64.9%, 81.5%, 0%, 34.1%)
CIE-LABlab(25.97, 49.99, -67.78)
CIE-LCHlch(25.97, 84.22, 306.41°)
OKLaboklab(38.44% 0.0376 -0.1956)
OKLCHoklch(38.44% 0.199 280.9)
XYZxyz(9.3593, 4.7362, 37.4592)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1FA8 #8CA81F
analogous
#1F48A8 #3B1FA8 #801FA8
triadic
#3B1FA8 #A83B1F #1FA83B
tetradic
#3B1FA8 #A81F48 #8CA81F #1FA880
square
#3B1FA8 #A81F48 #8CA81F #1FA880
split-complementary
#3B1FA8 #A8801F #48A81F
monochromatic
#170C41 #291574 #3B1FA8 #4F2CD8 #7A60E2

Accessibility & contrast

On white

10.78
#3B1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3B1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1FA8
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1FA8#FFFFFF#000000##FFFFFF
##3B1FA81.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b1fa8;
/* rgb */ color: rgb(59, 31, 168);
/* oklch */ color: oklch(38.4% 0.199 280.9);
Tailwind
colors: {
  custom: {
    50: '#8060c3',
    500: '#3b1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #3b1fa8;
$custom-light: #8060c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1fa8",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 252.263,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38437,
    "c": 0.19919,
    "h": 280.9
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#3B1FA8
secondary
#B1C65D
accent
#EC3CC8
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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