#3A1F87#3A1F87

#3A1F87 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.160 H 286.7°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#3A1F87
RGBrgb(58, 31, 135)
HSLhsl(256, 63%, 33%)
HSVhsv(256, 77%, 53%)
CMYKcmyk(57%, 77%, 0%, 47.1%)
CIE-LABlab(22.40, 40.05, -53.36)
CIE-LCHlch(22.40, 66.72, 306.89°)
OKLaboklab(34.89% 0.046 -0.1536)
OKLCHoklch(34.89% 0.16 286.7)
XYZxyz(6.6068, 3.6284, 23.2692)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F87 #6C871F
analogous
#1F3887 #3A1F87 #6E1F87
triadic
#3A1F87 #873A1F #1F873A
tetradic
#3A1F87 #871F38 #6C871F #1F876E
square
#3A1F87 #871F38 #6C871F #1F876E
split-complementary
#3A1F87 #876E1F #38871F
monochromatic
#0F0823 #251455 #3A1F87 #4F2AB9 #6F4BD6

Accessibility & contrast

On white

12.17
#3A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F87
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F87#FFFFFF#000000##FFFFFF
##3A1F871.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#173C51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1f87;
/* rgb */ color: rgb(58, 31, 135);
/* oklch */ color: oklch(34.9% 0.160 286.7);
Tailwind
colors: {
  custom: {
    50: '#7a5eab',
    500: '#3a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f87;
$custom-light: #7a5eab;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f87",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 255.577,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.1603,
    "h": 286.7
  },
  "luminance": 0.03629
}

Semantic roles & 50–950 ramp

primary
#3A1F87
secondary
#9BB84A
accent
#E642BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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