#3B1CA5#3B1CA5

#3B1CA5 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.198 H 281.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#3B1CA5
RGBrgb(59, 28, 165)
HSLhsl(254, 71%, 38%)
HSVhsv(254, 83%, 65%)
CMYKcmyk(64.2%, 83%, 0%, 35.3%)
CIE-LABlab(25.19, 50.44, -67.26)
CIE-LCHlch(25.19, 84.07, 306.87°)
OKLaboklab(37.8% 0.0401 -0.194)
OKLCHoklch(37.8% 0.198 281.7)
XYZxyz(9.0083, 4.4762, 35.9793)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B1CA5 #86A51C
analogous
#1C41A5 #3B1CA5 #801CA5
triadic
#3B1CA5 #A53B1C #1CA53B
tetradic
#3B1CA5 #A51C41 #86A51C #1CA580
square
#3B1CA5 #A51C41 #86A51C #1CA580
split-complementary
#3B1CA5 #A5801C #41A51C
monochromatic
#160A3C #281371 #3B1CA5 #4E25D9 #7859E3

Accessibility & contrast

On white

11.08
#3B1CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3B1CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B1CA5
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B1CA5#FFFFFF#000000##FFFFFF
##3B1CA51.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004762
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3b1ca5;
/* rgb */ color: rgb(59, 28, 165);
/* oklch */ color: oklch(37.8% 0.198 281.7);
Tailwind
colors: {
  custom: {
    50: '#805ec1',
    500: '#3b1ca5',
    950: '#000000',
  },
}
SCSS
$custom: #3b1ca5;
$custom-light: #805ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b1ca5",
  "rgb": {
    "r": 59,
    "g": 28,
    "b": 165
  },
  "hsl": {
    "h": 253.577,
    "s": 70.984,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37799,
    "c": 0.19814,
    "h": 281.7
  },
  "luminance": 0.04477
}

Semantic roles & 50–950 ramp

primary
#3B1CA5
secondary
#ADC656
accent
#EE3AC5
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3B1CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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