#3A2655#3A2655

#3A2655 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.083 H 301.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3A2655
RGBrgb(58, 38, 85)
HSLhsl(266, 38%, 24%)
HSVhsv(266, 55%, 33%)
CMYKcmyk(31.8%, 55.3%, 0%, 66.7%)
CIE-LABlab(19.81, 20.69, -25.21)
CIE-LCHlch(19.81, 32.61, 309.37°)
OKLaboklab(31.73% 0.0434 -0.0709)
OKLCHoklch(31.73% 0.083 301.5)
XYZxyz(4.0774, 2.9416, 8.9456)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2655 #415526
analogous
#262A55 #3A2655 #522655
triadic
#3A2655 #553A26 #26553A
tetradic
#3A2655 #55262A #415526 #265552
square
#3A2655 #55262A #415526 #265552
split-complementary
#3A2655 #555226 #2A5526
monochromatic
#0E0915 #1D132B #3A2655 #57397F #744CAA

Accessibility & contrast

On white

13.22
#3A2655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A2655 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2655
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2655#FFFFFF#000000##FFFFFF
##3A26551.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163057
Deuteranopia (green-blind)
#1C3054
Tritanopia (blue-blind)
#352F39
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a2655;
/* rgb */ color: rgb(58, 38, 85);
/* oklch */ color: oklch(31.7% 0.083 301.5);
Tailwind
colors: {
  custom: {
    50: '#726185',
    500: '#3a2655',
    950: '#000000',
  },
}
SCSS
$custom: #3a2655;
$custom-light: #726185;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2655",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 85
  },
  "hsl": {
    "h": 265.532,
    "s": 38.211,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31726,
    "c": 0.08318,
    "h": 301.5
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#3A2655
secondary
#70884F
accent
#CE5A9D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08050B
muted
#7B797C

Preview Lab

Preview with #3A2655

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

Preview Lab → · Contrast checker → · Palette generator →

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