#3A2FA3#3A2FA3

#3A2FA3 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.178 H 278.9°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#3A2FA3
RGBrgb(58, 47, 163)
HSLhsl(246, 55%, 41%)
HSVhsv(246, 71%, 64%)
CMYKcmyk(64.4%, 71.2%, 0%, 36.1%)
CIE-LABlab(28.32, 39.96, -60.89)
CIE-LCHlch(28.32, 72.83, 303.27°)
OKLaboklab(39.92% 0.0275 -0.1757)
OKLCHoklch(39.92% 0.178 278.9)
XYZxyz(9.3702, 5.5762, 35.2258)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FA3 #98A32F
analogous
#2F5EA3 #3A2FA3 #742FA3
triadic
#3A2FA3 #A33A2F #2FA33A
tetradic
#3A2FA3 #A32F5E #98A32F #2FA374
square
#3A2FA3 #A32F5E #98A32F #2FA374
split-complementary
#3A2FA3 #A3742F #5EA32F
monochromatic
#181444 #292173 #3A2FA3 #5246CA #7E75D7

Accessibility & contrast

On white

9.93
#3A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FA3
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FA3#FFFFFF#000000##FFFFFF
##3A2FA31.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A6
Deuteranopia (green-blind)
#003EA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a2fa3;
/* rgb */ color: rgb(58, 47, 163);
/* oklch */ color: oklch(39.9% 0.178 278.9);
Tailwind
colors: {
  custom: {
    50: '#7e69bf',
    500: '#3a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fa3;
$custom-light: #7e69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fa3",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 245.69,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.17781,
    "h": 278.9
  },
  "luminance": 0.05577
}

Semantic roles & 50–950 ramp

primary
#3A2FA3
secondary
#B8BF6F
accent
#DF49D0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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