#3A259E#3A259E

#3A259E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.182 H 281.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3A259E
RGBrgb(58, 37, 158)
HSLhsl(250, 62%, 38%)
HSVhsv(250, 77%, 62%)
CMYKcmyk(63.3%, 76.6%, 0%, 38%)
CIE-LABlab(25.83, 43.94, -61.93)
CIE-LCHlch(25.83, 75.94, 305.35°)
OKLaboklab(38.01% 0.0355 -0.1787)
OKLCHoklch(38.01% 0.182 281.2)
XYZxyz(8.5761, 4.6907, 32.7946)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A259E #899E25
analogous
#254C9E #3A259E #76259E
triadic
#3A259E #9E3A25 #259E3A
tetradic
#3A259E #9E254C #899E25 #259E76
square
#3A259E #9E254C #899E25 #259E76
split-complementary
#3A259E #9E7625 #4C9E25
monochromatic
#160E3B #28196C #3A259E #4D31CF #7863DA

Accessibility & contrast

On white

10.83
#3A259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A259E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A259E#FFFFFF#000000##FFFFFF
##3A259E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a259e;
/* rgb */ color: rgb(58, 37, 158);
/* oklch */ color: oklch(38.0% 0.182 281.2);
Tailwind
colors: {
  custom: {
    50: '#7d63bc',
    500: '#3a259e',
    950: '#000000',
  },
}
SCSS
$custom: #3a259e;
$custom-light: #7d63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a259e",
  "rgb": {
    "r": 58,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 250.413,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38005,
    "c": 0.18218,
    "h": 281.2
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#3A259E
secondary
#AFC05F
accent
#E543C9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3A259E

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

Preview Lab → · Contrast checker → · Palette generator →

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