#3A2B79#3A2B79

#3A2B79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.4% C 0.127 H 286.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#3A2B79
RGBrgb(58, 43, 121)
HSLhsl(252, 48%, 32%)
HSVhsv(252, 64%, 47%)
CMYKcmyk(52.1%, 64.5%, 0%, 52.5%)
CIE-LABlab(23.70, 28.63, -42.41)
CIE-LCHlch(23.70, 51.17, 304.02°)
OKLaboklab(35.43% 0.0368 -0.1215)
OKLCHoklch(35.43% 0.127 286.9)
XYZxyz(6.0590, 4.0075, 18.5397)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2B79 #6A792B
analogous
#2B4379 #3A2B79 #612B79
triadic
#3A2B79 #793A2B #2B793A
tetradic
#3A2B79 #792B43 #6A792B #2B7961
square
#3A2B79 #792B43 #6A792B #2B7961
split-complementary
#3A2B79 #79612B #43792B
monochromatic
#0F0B1F #241B4C #3A2B79 #503BA6 #6E5AC4

Accessibility & contrast

On white

11.66
#3A2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2B79
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2B79#FFFFFF#000000##FFFFFF
##3A2B791.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#233D4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a2b79;
/* rgb */ color: rgb(58, 43, 121);
/* oklch */ color: oklch(35.4% 0.127 286.9);
Tailwind
colors: {
  custom: {
    50: '#7665a0',
    500: '#3a2b79',
    950: '#000000',
  },
}
SCSS
$custom: #3a2b79;
$custom-light: #7665a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2b79",
  "rgb": {
    "r": 58,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 251.538,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35429,
    "c": 0.12692,
    "h": 286.9
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#3A2B79
secondary
#9AAA56
accent
#D751BD
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #3A2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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