#3A259C#3A259C

#3A259C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.180 H 281.6°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#3A259C
RGBrgb(58, 37, 156)
HSLhsl(251, 62%, 38%)
HSVhsv(251, 76%, 61%)
CMYKcmyk(62.8%, 76.3%, 0%, 38.8%)
CIE-LABlab(25.63, 43.32, -61.05)
CIE-LCHlch(25.63, 74.86, 305.36°)
OKLaboklab(37.8% 0.036 -0.1761)
OKLCHoklch(37.8% 0.18 281.6)
XYZxyz(8.4054, 4.6224, 31.8953)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A259C #879C25
analogous
#254C9C #3A259C #75259C
triadic
#3A259C #9C3A25 #259C3A
tetradic
#3A259C #9C254C #879C25 #259C75
square
#3A259C #9C254C #879C25 #259C75
split-complementary
#3A259C #9C7525 #4C9C25
monochromatic
#150E39 #28196B #3A259C #4C31CD #7762DA

Accessibility & contrast

On white

10.91
#3A259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A259C
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A259C#FFFFFF#000000##FFFFFF
##3A259C1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a259c;
/* rgb */ color: rgb(58, 37, 156);
/* oklch */ color: oklch(37.8% 0.180 281.6);
Tailwind
colors: {
  custom: {
    50: '#7d62ba',
    500: '#3a259c',
    950: '#000000',
  },
}
SCSS
$custom: #3a259c;
$custom-light: #7d62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a259c",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 250.588,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.378,
    "c": 0.17974,
    "h": 281.6
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#3A259C
secondary
#AEBF5E
accent
#E543C8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A259C

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

Preview Lab → · Contrast checker → · Palette generator →

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