#3A298E#3A298E

#3A298E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.158 H 283.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#3A298E
RGBrgb(58, 41, 142)
HSLhsl(250, 55%, 36%)
HSVhsv(250, 71%, 56%)
CMYKcmyk(59.2%, 71.1%, 0%, 44.3%)
CIE-LABlab(25.07, 36.66, -53.35)
CIE-LCHlch(25.07, 64.73, 304.49°)
OKLaboklab(36.99% 0.036 -0.1536)
OKLCHoklch(36.99% 0.158 283.2)
XYZxyz(7.4188, 4.4379, 26.0516)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A298E #7D8E29
analogous
#294A8E #3A298E #6C298E
triadic
#3A298E #8E3A29 #298E3A
tetradic
#3A298E #8E294A #7D8E29 #298E6C
square
#3A298E #8E294A #7D8E29 #298E6C
split-complementary
#3A298E #8E6C29 #4A8E29
monochromatic
#130E2F #271B5F #3A298E #4D37BD #7360D1

Accessibility & contrast

On white

11.13
#3A298E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A298E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A298E#FFFFFF#000000##FFFFFF
##3A298E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#0A4458
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a298e;
/* rgb */ color: rgb(58, 41, 142);
/* oklch */ color: oklch(37.0% 0.158 283.2);
Tailwind
colors: {
  custom: {
    50: '#7a64b0',
    500: '#3a298e',
    950: '#000000',
  },
}
SCSS
$custom: #3a298e;
$custom-light: #7a64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a298e",
  "rgb": {
    "r": 58,
    "g": 41,
    "b": 142
  },
  "hsl": {
    "h": 250.099,
    "s": 55.191,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36988,
    "c": 0.15777,
    "h": 283.2
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#3A298E
secondary
#A8B75C
accent
#DF49C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3A298E

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

Preview Lab → · Contrast checker → · Palette generator →

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