#3A2485#3A2485

#3A2485 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.152 H 286.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#3A2485
RGBrgb(58, 36, 133)
HSLhsl(254, 57%, 33%)
HSVhsv(254, 73%, 52%)
CMYKcmyk(56.4%, 72.9%, 0%, 47.8%)
CIE-LABlab(23.18, 36.70, -50.83)
CIE-LCHlch(23.18, 62.69, 305.83°)
OKLaboklab(35.39% 0.0422 -0.1462)
OKLCHoklch(35.39% 0.152 286.1)
XYZxyz(6.6082, 3.8544, 22.5815)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2485 #6F8524
analogous
#243F85 #3A2485 #6A2485
triadic
#3A2485 #853A24 #24853A
tetradic
#3A2485 #85243F #6F8524 #24856A
square
#3A2485 #85243F #6F8524 #24856A
split-complementary
#3A2485 #856A24 #3F8524
monochromatic
#100A25 #251755 #3A2485 #4F31B5 #6F53D0

Accessibility & contrast

On white

11.86
#3A2485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A2485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2485
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2485#FFFFFF#000000##FFFFFF
##3A24851.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#193E52
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a2485;
/* rgb */ color: rgb(58, 36, 133);
/* oklch */ color: oklch(35.4% 0.152 286.1);
Tailwind
colors: {
  custom: {
    50: '#7961a9',
    500: '#3a2485',
    950: '#000000',
  },
}
SCSS
$custom: #3a2485;
$custom-light: #7961a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2485",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 133
  },
  "hsl": {
    "h": 253.608,
    "s": 57.396,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35385,
    "c": 0.15214,
    "h": 286.1
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#3A2485
secondary
#9EB450
accent
#E147BE
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A2485

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

Preview Lab → · Contrast checker → · Palette generator →

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