#3A2155#3A2155

#3A2155 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.092 H 303.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#3A2155
RGBrgb(58, 33, 85)
HSLhsl(269, 44%, 23%)
HSVhsv(269, 61%, 33%)
CMYKcmyk(31.8%, 61.2%, 0%, 66.7%)
CIE-LABlab(18.55, 23.93, -27.21)
CIE-LCHlch(18.55, 36.23, 311.33°)
OKLaboklab(30.8% 0.0511 -0.0768)
OKLCHoklch(30.8% 0.092 303.6)
XYZxyz(3.9281, 2.6431, 8.8958)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2155 #3C5521
analogous
#212255 #3A2155 #542155
triadic
#3A2155 #553A21 #21553A
tetradic
#3A2155 #552122 #3C5521 #215554
square
#3A2155 #552122 #3C5521 #215554
split-complementary
#3A2155 #555421 #225521
monochromatic
#0F0916 #1C1029 #3A2155 #583281 #7643AD

Accessibility & contrast

On white

13.74
#3A2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3A2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2155
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2155#FFFFFF#000000##FFFFFF
##3A21551.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D57
Deuteranopia (green-blind)
#162D54
Tritanopia (blue-blind)
#352B37
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a2155;
/* rgb */ color: rgb(58, 33, 85);
/* oklch */ color: oklch(30.8% 0.092 303.6);
Tailwind
colors: {
  custom: {
    50: '#725d85',
    500: '#3a2155',
    950: '#000000',
  },
}
SCSS
$custom: #3a2155;
$custom-light: #725d85;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2155",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 268.846,
    "s": 44.068,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30798,
    "c": 0.09223,
    "h": 303.6
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#3A2155
secondary
#6A8949
accent
#D45496
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #3A2155

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

Preview Lab → · Contrast checker → · Palette generator →

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