#3A1BB4#3A1BB4

#3A1BB4 is a dark, highly saturated violet. Relative luminance 0.050; OKLCH L 39.3% C 0.216 H 279.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1BB4
RGBrgb(58, 27, 180)
HSLhsl(252, 74%, 41%)
HSVhsv(252, 85%, 71%)
CMYKcmyk(67.8%, 85%, 0%, 29.4%)
CIE-LABlab(26.67, 55.01, -73.83)
CIE-LCHlch(26.67, 92.07, 306.69°)
OKLaboklab(39.3% 0.0339 -0.2132)
OKLCHoklch(39.3% 0.216 279)
XYZxyz(10.3724, 4.9778, 43.5854)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1BB4 #95B41B
analogous
#1B48B4 #3A1BB4 #861BB4
triadic
#3A1BB4 #B43A1B #1BB43A
tetradic
#3A1BB4 #B41B48 #95B41B #1BB486
square
#3A1BB4 #B41B48 #95B41B #1BB486
split-complementary
#3A1BB4 #B4861B #48B41B
monochromatic
#180B4A #29137F #3A1BB4 #512DDF #7D62E7

Accessibility & contrast

On white

10.52
#3A1BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3A1BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1BB4
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1BB4#FFFFFF#000000##FFFFFF
##3A1BB41.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#0039B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3a1bb4;
/* rgb */ color: rgb(58, 27, 180);
/* oklch */ color: oklch(39.3% 0.216 279.0);
Tailwind
colors: {
  custom: {
    50: '#835fcc',
    500: '#3a1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #3a1bb4;
$custom-light: #835fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1bb4",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 252.157,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39295,
    "c": 0.21583,
    "h": 279
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

primary
#3A1BB4
secondary
#B6CC5F
accent
#F137CB
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3A1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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