#3A1B71#3A1B71

#3A1B71 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.138 H 293.6°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#3A1B71
RGBrgb(58, 27, 113)
HSLhsl(262, 61%, 27%)
HSVhsv(262, 76%, 44%)
CMYKcmyk(48.7%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.54, 35.61, -44.06)
CIE-LCHlch(19.54, 56.65, 308.95°)
OKLaboklab(32.22% 0.0552 -0.1263)
OKLCHoklch(32.22% 0.138 293.6)
XYZxyz(5.1167, 2.8755, 15.9050)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1B71 #52711B
analogous
#1B2771 #3A1B71 #651B71
triadic
#3A1B71 #713A1B #1B713A
tetradic
#3A1B71 #711B27 #52711B #1B7165
square
#3A1B71 #711B27 #52711B #1B7165
split-complementary
#3A1B71 #71651B #27711B
monochromatic
#0D0619 #210F40 #3A1B71 #5327A2 #6E37CF

Accessibility & contrast

On white

13.33
#3A1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A1B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1B71
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1B71#FFFFFF#000000##FFFFFF
##3A1B711.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#2A3144
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1b71;
/* rgb */ color: rgb(58, 27, 113);
/* oklch */ color: oklch(32.2% 0.138 293.6);
Tailwind
colors: {
  custom: {
    50: '#765a9b',
    500: '#3a1b71',
    950: '#000000',
  },
}
SCSS
$custom: #3a1b71;
$custom-light: #765a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1b71",
  "rgb": {
    "r": 58,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 261.628,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32224,
    "c": 0.13781,
    "h": 293.6
  },
  "luminance": 0.02876
}

Semantic roles & 50–950 ramp

primary
#3A1B71
secondary
#82A642
accent
#E543AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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