#3A249C#3A249C

#3A249C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.181 H 281.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3A249C
RGBrgb(58, 36, 156)
HSLhsl(251, 63%, 38%)
HSVhsv(251, 77%, 61%)
CMYKcmyk(62.8%, 76.9%, 0%, 38.8%)
CIE-LABlab(25.45, 43.85, -61.35)
CIE-LCHlch(25.45, 75.41, 305.55°)
OKLaboklab(37.67% 0.0367 -0.177)
OKLCHoklch(37.67% 0.181 281.7)
XYZxyz(8.3747, 4.5610, 31.8851)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A249C #869C24
analogous
#244A9C #3A249C #76249C
triadic
#3A249C #9C3A24 #249C3A
tetradic
#3A249C #9C244A #869C24 #249C76
square
#3A249C #9C244A #869C24 #249C76
split-complementary
#3A249C #9C7624 #4A9C24
monochromatic
#150D39 #28196A #3A249C #4C2FCE #7660DA

Accessibility & contrast

On white

10.98
#3A249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A249C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A249C#FFFFFF#000000##FFFFFF
##3A249C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a249c;
/* rgb */ color: rgb(58, 36, 156);
/* oklch */ color: oklch(37.7% 0.181 281.7);
Tailwind
colors: {
  custom: {
    50: '#7d62ba',
    500: '#3a249c',
    950: '#000000',
  },
}
SCSS
$custom: #3a249c;
$custom-light: #7d62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a249c",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 251,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3767,
    "c": 0.18075,
    "h": 281.7
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#3A249C
secondary
#ADBF5C
accent
#E642C8
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A249C

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

Preview Lab → · Contrast checker → · Palette generator →

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