#3A2971#3A2971

#3A2971 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.4% C 0.119 H 289.5°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3A2971
RGBrgb(58, 41, 113)
HSLhsl(254, 47%, 30%)
HSVhsv(254, 64%, 44%)
CMYKcmyk(48.7%, 63.7%, 0%, 55.7%)
CIE-LABlab(22.58, 27.33, -39.12)
CIE-LCHlch(22.58, 47.72, 304.94°)
OKLaboklab(34.41% 0.0397 -0.1118)
OKLCHoklch(34.41% 0.119 289.5)
XYZxyz(5.5177, 3.6775, 16.0387)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2971 #607129
analogous
#293C71 #3A2971 #5E2971
triadic
#3A2971 #713A29 #29713A
tetradic
#3A2971 #71293C #607129 #29715E
square
#3A2971 #71293C #607129 #29715E
split-complementary
#3A2971 #715E29 #3C7129
monochromatic
#0C0817 #231944 #3A2971 #51399E #6D54C1

Accessibility & contrast

On white

12.10
#3A2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2971
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2971#FFFFFF#000000##FFFFFF
##3A29711.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#293A49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a2971;
/* rgb */ color: rgb(58, 41, 113);
/* oklch */ color: oklch(34.4% 0.119 289.5);
Tailwind
colors: {
  custom: {
    50: '#75639a',
    500: '#3a2971',
    950: '#000000',
  },
}
SCSS
$custom: #3a2971;
$custom-light: #75639a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2971",
  "rgb": {
    "r": 58,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 254.167,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34409,
    "c": 0.11862,
    "h": 289.5
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#3A2971
secondary
#90A353
accent
#D651B7
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A2971

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

Preview Lab → · Contrast checker → · Palette generator →

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