#3A2157#3A2157

#3A2157 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.095 H 302.6°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#3A2157
RGBrgb(58, 33, 87)
HSLhsl(268, 45%, 24%)
HSVhsv(268, 62%, 34%)
CMYKcmyk(33.3%, 62.1%, 0%, 65.9%)
CIE-LABlab(18.69, 24.50, -28.33)
CIE-LCHlch(18.69, 37.45, 310.86°)
OKLaboklab(30.95% 0.0511 -0.0801)
OKLCHoklch(30.95% 0.095 302.6)
XYZxyz(4.0087, 2.6754, 9.3202)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2157 #3E5721
analogous
#212357 #3A2157 #552157
triadic
#3A2157 #573A21 #21573A
tetradic
#3A2157 #572123 #3E5721 #215755
square
#3A2157 #572123 #3E5721 #215755
split-complementary
#3A2157 #575521 #235721
monochromatic
#0F0816 #1C102B #3A2157 #583283 #7543B0

Accessibility & contrast

On white

13.68
#3A2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2157
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2157#FFFFFF#000000##FFFFFF
##3A21571.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D59
Deuteranopia (green-blind)
#142D56
Tritanopia (blue-blind)
#342C38
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a2157;
/* rgb */ color: rgb(58, 33, 87);
/* oklch */ color: oklch(30.9% 0.095 302.6);
Tailwind
colors: {
  custom: {
    50: '#725d87',
    500: '#3a2157',
    950: '#000000',
  },
}
SCSS
$custom: #3a2157;
$custom-light: #725d87;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2157",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 267.778,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30946,
    "c": 0.095,
    "h": 302.6
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#3A2157
secondary
#6C8B49
accent
#D55399
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08040B
muted
#7B797C

Preview Lab

Preview with #3A2157

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

Preview Lab → · Contrast checker → · Palette generator →

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