#3A259F#3A259F

#3A259F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.183 H 281.1°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3A259F
RGBrgb(58, 37, 159)
HSLhsl(250, 62%, 38%)
HSVhsv(250, 77%, 62%)
CMYKcmyk(63.5%, 76.7%, 0%, 37.6%)
CIE-LABlab(25.94, 44.25, -62.38)
CIE-LCHlch(25.94, 76.48, 305.35°)
OKLaboklab(38.11% 0.0353 -0.18)
OKLCHoklch(38.11% 0.183 281.1)
XYZxyz(8.6625, 4.7252, 33.2497)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A259F #8A9F25
analogous
#254D9F #3A259F #77259F
triadic
#3A259F #9F3A25 #259F3A
tetradic
#3A259F #9F254D #8A9F25 #259F77
square
#3A259F #9F254D #8A9F25 #259F77
split-complementary
#3A259F #9F7725 #4D9F25
monochromatic
#160E3C #28196D #3A259F #4D32CF #7864DB

Accessibility & contrast

On white

10.80
#3A259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A259F
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A259F#FFFFFF#000000##FFFFFF
##3A259F1.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00399D
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a259f;
/* rgb */ color: rgb(58, 37, 159);
/* oklch */ color: oklch(38.1% 0.183 281.1);
Tailwind
colors: {
  custom: {
    50: '#7e63bd',
    500: '#3a259f',
    950: '#000000',
  },
}
SCSS
$custom: #3a259f;
$custom-light: #7e63bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a259f",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 250.328,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38108,
    "c": 0.18338,
    "h": 281.1
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#3A259F
secondary
#B0C05F
accent
#E542C9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A259F

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

Preview Lab → · Contrast checker → · Palette generator →

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