#3A2A72#3A2A72

#3A2A72 is a dark, moderate violet. Relative luminance 0.038; OKLCH L 34.7% C 0.119 H 288.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#3A2A72
RGBrgb(58, 42, 114)
HSLhsl(253, 46%, 31%)
HSVhsv(253, 63%, 45%)
CMYKcmyk(49.1%, 63.2%, 0%, 55.3%)
CIE-LABlab(22.90, 27.01, -39.24)
CIE-LCHlch(22.90, 47.63, 304.54°)
OKLaboklab(34.67% 0.0384 -0.1121)
OKLCHoklch(34.67% 0.119 288.9)
XYZxyz(5.6093, 3.7702, 16.3485)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A72 #62722A
analogous
#2A3E72 #3A2A72 #5E2A72
triadic
#3A2A72 #723A2A #2A723A
tetradic
#3A2A72 #722A3E #62722A #2A725E
square
#3A2A72 #722A3E #62722A #2A725E
split-complementary
#3A2A72 #725E2A #3E722A
monochromatic
#0C0919 #231A45 #3A2A72 #513A9F #6E56C1

Accessibility & contrast

On white

11.97
#3A2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2A72
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A72#FFFFFF#000000##FFFFFF
##3A2A721.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#283B49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a2a72;
/* rgb */ color: rgb(58, 42, 114);
/* oklch */ color: oklch(34.7% 0.119 288.9);
Tailwind
colors: {
  custom: {
    50: '#75649b',
    500: '#3a2a72',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a72;
$custom-light: #75649b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a72",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 253.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34669,
    "c": 0.11854,
    "h": 288.9
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#3A2A72
secondary
#92A454
accent
#D652B9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #3A2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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