#3A1FA8#3A1FA8

#3A1FA8 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.199 H 280.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#3A1FA8
RGBrgb(58, 31, 168)
HSLhsl(252, 69%, 39%)
HSVhsv(252, 82%, 66%)
CMYKcmyk(65.5%, 81.5%, 0%, 34.1%)
CIE-LABlab(25.88, 49.89, -67.93)
CIE-LCHlch(25.88, 84.28, 306.29°)
OKLaboklab(38.35% 0.0361 -0.1961)
OKLCHoklch(38.35% 0.199 280.4)
XYZxyz(9.3006, 4.7059, 37.4564)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1FA8 #8DA81F
analogous
#1F49A8 #3A1FA8 #7F1FA8
triadic
#3A1FA8 #A83A1F #1FA83A
tetradic
#3A1FA8 #A81F49 #8DA81F #1FA87F
square
#3A1FA8 #A81F49 #8DA81F #1FA87F
split-complementary
#3A1FA8 #A87F1F #49A81F
monochromatic
#160C41 #281574 #3A1FA8 #4E2CD8 #7960E2

Accessibility & contrast

On white

10.82
#3A1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1FA8
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1FA8#FFFFFF#000000##FFFFFF
##3A1FA81.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a1fa8;
/* rgb */ color: rgb(58, 31, 168);
/* oklch */ color: oklch(38.4% 0.199 280.4);
Tailwind
colors: {
  custom: {
    50: '#8060c3',
    500: '#3a1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #3a1fa8;
$custom-light: #8060c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1fa8",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 251.825,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.19937,
    "h": 280.4
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#3A1FA8
secondary
#B1C65D
accent
#EC3CC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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