#3A2154#3A2154

#3A2154 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.091 H 304.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#3A2154
RGBrgb(58, 33, 84)
HSLhsl(269, 44%, 23%)
HSVhsv(269, 61%, 33%)
CMYKcmyk(31%, 60.7%, 0%, 67.1%)
CIE-LABlab(18.49, 23.65, -26.65)
CIE-LCHlch(18.49, 35.62, 311.59°)
OKLaboklab(30.73% 0.0511 -0.0751)
OKLCHoklch(30.73% 0.091 304.2)
XYZxyz(3.8887, 2.6274, 8.6881)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2154 #3B5421
analogous
#212154 #3A2154 #532154
triadic
#3A2154 #543A21 #21543A
tetradic
#3A2154 #542121 #3B5421 #215453
square
#3A2154 #542121 #3B5421 #215453
split-complementary
#3A2154 #545321 #215421
monochromatic
#0F0916 #1C1028 #3A2154 #583280 #7744AC

Accessibility & contrast

On white

13.77
#3A2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2154
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2154#FFFFFF#000000##FFFFFF
##3A21541.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2C56
Deuteranopia (green-blind)
#172D53
Tritanopia (blue-blind)
#352B37
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a2154;
/* rgb */ color: rgb(58, 33, 84);
/* oklch */ color: oklch(30.7% 0.091 304.2);
Tailwind
colors: {
  custom: {
    50: '#725d84',
    500: '#3a2154',
    950: '#000000',
  },
}
SCSS
$custom: #3a2154;
$custom-light: #725d84;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2154",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 269.412,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30726,
    "c": 0.09084,
    "h": 304.2
  },
  "luminance": 0.02627
}

Semantic roles & 50–950 ramp

primary
#3A2154
secondary
#698849
accent
#D35495
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #3A2154

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

Preview Lab → · Contrast checker → · Palette generator →

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