#3B1FAA#3B1FAA

#3B1FAA is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.201 H 280.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#3B1FAA
RGBrgb(59, 31, 170)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 82%, 67%)
CMYKcmyk(65.3%, 81.8%, 0%, 33.3%)
CIE-LABlab(26.19, 50.57, -68.62)
CIE-LCHlch(26.19, 85.24, 306.39°)
OKLaboklab(38.66% 0.037 -0.1981)
OKLCHoklch(38.66% 0.201 280.6)
XYZxyz(9.5470, 4.8113, 38.4480)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1FAA #8EAA1F
analogous
#1F49AA #3B1FAA #801FAA
triadic
#3B1FAA #AA3B1F #1FAA3B
tetradic
#3B1FAA #AA1F49 #8EAA1F #1FAA80
square
#3B1FAA #AA1F49 #8EAA1F #1FAA80
split-complementary
#3B1FAA #AA801F #49AA1F
monochromatic
#170C42 #291676 #3B1FAA #502DD9 #7B61E2

Accessibility & contrast

On white

10.70
#3B1FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3B1FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1FAA
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1FAA#FFFFFF#000000##FFFFFF
##3B1FAA1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004A66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3b1faa;
/* rgb */ color: rgb(59, 31, 170);
/* oklch */ color: oklch(38.7% 0.201 280.6);
Tailwind
colors: {
  custom: {
    50: '#8160c5',
    500: '#3b1faa',
    950: '#000000',
  },
}
SCSS
$custom: #3b1faa;
$custom-light: #8160c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1faa",
  "rgb": {
    "r": 59,
    "g": 31,
    "b": 170
  },
  "hsl": {
    "h": 252.086,
    "s": 69.154,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38655,
    "c": 0.20148,
    "h": 280.6
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B1FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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