#3A2A71#3A2A71

#3A2A71 is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.6% C 0.117 H 289.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#3A2A71
RGBrgb(58, 42, 113)
HSLhsl(254, 46%, 30%)
HSVhsv(254, 63%, 44%)
CMYKcmyk(48.7%, 62.8%, 0%, 55.7%)
CIE-LABlab(22.82, 26.69, -38.72)
CIE-LCHlch(22.82, 47.03, 304.58°)
OKLaboklab(34.59% 0.0385 -0.1106)
OKLCHoklch(34.59% 0.117 289.2)
XYZxyz(5.5527, 3.7475, 16.0504)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A71 #61712A
analogous
#2A3D71 #3A2A71 #5D2A71
triadic
#3A2A71 #713A2A #2A713A
tetradic
#3A2A71 #712A3D #61712A #2A715D
square
#3A2A71 #712A3D #61712A #2A715D
split-complementary
#3A2A71 #715D2A #3D712A
monochromatic
#0C0918 #231944 #3A2A71 #513B9E #6D55C0

Accessibility & contrast

On white

12.00
#3A2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3A2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A71
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A71#FFFFFF#000000##FFFFFF
##3A2A711.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2a71;
/* rgb */ color: rgb(58, 42, 113);
/* oklch */ color: oklch(34.6% 0.117 289.2);
Tailwind
colors: {
  custom: {
    50: '#75649a',
    500: '#3a2a71',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a71;
$custom-light: #75649a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a71",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 253.521,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34587,
    "c": 0.11712,
    "h": 289.2
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#3A2A71
secondary
#91A354
accent
#D552B8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #3A2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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