#3A259A#3A259A

#3A259A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.177 H 281.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#3A259A
RGBrgb(58, 37, 154)
HSLhsl(251, 61%, 37%)
HSVhsv(251, 76%, 60%)
CMYKcmyk(62.3%, 76%, 0%, 39.6%)
CIE-LABlab(25.43, 42.70, -60.16)
CIE-LCHlch(25.43, 73.77, 305.37°)
OKLaboklab(37.6% 0.0365 -0.1735)
OKLCHoklch(37.6% 0.177 281.9)
XYZxyz(8.2374, 4.5552, 31.0107)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A259A #859A25
analogous
#254B9A #3A259A #74259A
triadic
#3A259A #9A3A25 #259A3A
tetradic
#3A259A #9A254B #859A25 #259A74
square
#3A259A #9A254B #859A25 #259A74
split-complementary
#3A259A #9A7425 #4B9A25
monochromatic
#150D37 #271969 #3A259A #4D31CB #7660D9

Accessibility & contrast

On white

10.99
#3A259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A259A
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A259A#FFFFFF#000000##FFFFFF
##3A259A1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a259a;
/* rgb */ color: rgb(58, 37, 154);
/* oklch */ color: oklch(37.6% 0.177 281.9);
Tailwind
colors: {
  custom: {
    50: '#7d62b9',
    500: '#3a259a',
    950: '#000000',
  },
}
SCSS
$custom: #3a259a;
$custom-light: #7d62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a259a",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 250.769,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37596,
    "c": 0.17731,
    "h": 281.9
  },
  "luminance": 0.04556
}

Semantic roles & 50–950 ramp

primary
#3A259A
secondary
#ADBE5D
accent
#E443C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A259A

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

Preview Lab → · Contrast checker → · Palette generator →

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