#3A2498#3A2498

#3A2498 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.176 H 282.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#3A2498
RGBrgb(58, 36, 152)
HSLhsl(251, 62%, 37%)
HSVhsv(251, 76%, 60%)
CMYKcmyk(61.8%, 76.3%, 0%, 40.4%)
CIE-LABlab(25.04, 42.61, -59.58)
CIE-LCHlch(25.04, 73.25, 305.58°)
OKLaboklab(37.26% 0.0377 -0.1718)
OKLCHoklch(37.26% 0.176 282.4)
XYZxyz(8.0415, 4.4277, 30.1306)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2498 #829824
analogous
#244898 #3A2498 #742498
triadic
#3A2498 #983A24 #24983A
tetradic
#3A2498 #982448 #829824 #249874
square
#3A2498 #982448 #829824 #249874
split-complementary
#3A2498 #987424 #489824
monochromatic
#140D35 #271867 #3A2498 #4D30C9 #755ED9

Accessibility & contrast

On white

11.14
#3A2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2498
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2498#FFFFFF#000000##FFFFFF
##3A24981.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2498;
/* rgb */ color: rgb(58, 36, 152);
/* oklch */ color: oklch(37.3% 0.176 282.4);
Tailwind
colors: {
  custom: {
    50: '#7c62b7',
    500: '#3a2498',
    950: '#000000',
  },
}
SCSS
$custom: #3a2498;
$custom-light: #7c62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2498",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 251.379,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37261,
    "c": 0.17588,
    "h": 282.4
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#3A2498
secondary
#ABBE5A
accent
#E543C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2498

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

Preview Lab → · Contrast checker → · Palette generator →

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