#3A1F92#3A1F92

#3A1F92 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.174 H 284.3°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#3A1F92
RGBrgb(58, 31, 146)
HSLhsl(254, 65%, 35%)
HSVhsv(254, 79%, 57%)
CMYKcmyk(60.3%, 78.8%, 0%, 42.7%)
CIE-LABlab(23.52, 43.36, -58.38)
CIE-LCHlch(23.52, 72.72, 306.61°)
OKLaboklab(36.01% 0.0428 -0.1682)
OKLCHoklch(36.01% 0.174 284.3)
XYZxyz(7.4216, 3.9544, 27.5607)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1F92 #77921F
analogous
#1F3E92 #3A1F92 #741F92
triadic
#3A1F92 #923A1F #1F923A
tetradic
#3A1F92 #921F3E #77921F #1F9274
square
#3A1F92 #921F3E #77921F #1F9274
split-complementary
#3A1F92 #92741F #3E921F
monochromatic
#120A2D #261460 #3A1F92 #4E2AC4 #7151DA

Accessibility & contrast

On white

11.73
#3A1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1F92
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1F92#FFFFFF#000000##FFFFFF
##3A1F921.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#024058
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1f92;
/* rgb */ color: rgb(58, 31, 146);
/* oklch */ color: oklch(36.0% 0.174 284.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fb3',
    500: '#3a1f92',
    950: '#000000',
  },
}
SCSS
$custom: #3a1f92;
$custom-light: #7c5fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1f92",
  "rgb": {
    "r": 58,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 254.087,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36012,
    "c": 0.1736,
    "h": 284.3
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#3A1F92
secondary
#A3BD50
accent
#E840C0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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