#3A2575#3A2575

#3A2575 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.130 H 289.8°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3A2575
RGBrgb(58, 37, 117)
HSLhsl(256, 52%, 30%)
HSVhsv(256, 68%, 46%)
CMYKcmyk(50.4%, 68.4%, 0%, 54.1%)
CIE-LABlab(21.97, 31.09, -42.67)
CIE-LCHlch(21.97, 52.79, 306.08°)
OKLaboklab(34.07% 0.044 -0.1222)
OKLCHoklch(34.07% 0.13 289.8)
XYZxyz(5.6165, 3.5068, 17.2071)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2575 #607525
analogous
#253875 #3A2575 #622575
triadic
#3A2575 #753A25 #25753A
tetradic
#3A2575 #752538 #607525 #257562
square
#3A2575 #752538 #607525 #257562
split-complementary
#3A2575 #756225 #387525
monochromatic
#0C0818 #231647 #3A2575 #5134A3 #6D4EC7

Accessibility & contrast

On white

12.34
#3A2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2575
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2575#FFFFFF#000000##FFFFFF
##3A25751.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#003373
Tritanopia (blue-blind)
#273849
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a2575;
/* rgb */ color: rgb(58, 37, 117);
/* oklch */ color: oklch(34.1% 0.130 289.8);
Tailwind
colors: {
  custom: {
    50: '#76619d',
    500: '#3a2575',
    950: '#000000',
  },
}
SCSS
$custom: #3a2575;
$custom-light: #76619d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2575",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 255.75,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34071,
    "c": 0.12989,
    "h": 289.8
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#3A2575
secondary
#90A84E
accent
#DB4CB6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A2575

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

Preview Lab → · Contrast checker → · Palette generator →

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