#3A2894#3A2894

#3A2894 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.167 H 282.4°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#3A2894
RGBrgb(58, 40, 148)
HSLhsl(250, 57%, 37%)
HSVhsv(250, 73%, 58%)
CMYKcmyk(60.8%, 73%, 0%, 42%)
CIE-LABlab(25.43, 39.16, -56.48)
CIE-LCHlch(25.43, 68.72, 304.74°)
OKLaboklab(37.42% 0.0357 -0.1627)
OKLCHoklch(37.42% 0.167 282.4)
XYZxyz(7.8473, 4.5547, 28.4769)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2894 #829428
analogous
#284C94 #3A2894 #702894
triadic
#3A2894 #943A28 #28943A
tetradic
#3A2894 #94284C #829428 #289470
square
#3A2894 #94284C #829428 #289470
split-complementary
#3A2894 #947028 #4C9428
monochromatic
#140E34 #271B64 #3A2894 #4D35C4 #7562D5

Accessibility & contrast

On white

10.99
#3A2894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2894
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2894#FFFFFF#000000##FFFFFF
##3A28941.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003892
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a2894;
/* rgb */ color: rgb(58, 40, 148);
/* oklch */ color: oklch(37.4% 0.167 282.4);
Tailwind
colors: {
  custom: {
    50: '#7b64b4',
    500: '#3a2894',
    950: '#000000',
  },
}
SCSS
$custom: #3a2894;
$custom-light: #7b64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2894",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 250,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.16661,
    "h": 282.4
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#3A2894
secondary
#ABBA5E
accent
#E147C7
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3A2894

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

Preview Lab → · Contrast checker → · Palette generator →

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