#3A2FA0#3A2FA0

#3A2FA0 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.6% C 0.174 H 279.3°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#3A2FA0
RGBrgb(58, 47, 160)
HSLhsl(246, 55%, 41%)
HSVhsv(246, 71%, 63%)
CMYKcmyk(63.8%, 70.6%, 0%, 37.3%)
CIE-LABlab(28.03, 38.98, -59.54)
CIE-LCHlch(28.03, 71.16, 303.21°)
OKLaboklab(39.63% 0.028 -0.1717)
OKLCHoklch(39.63% 0.174 279.3)
XYZxyz(9.1046, 5.4699, 33.8269)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FA0 #95A02F
analogous
#2F5CA0 #3A2FA0 #722FA0
triadic
#3A2FA0 #A03A2F #2FA03A
tetradic
#3A2FA0 #A02F5C #95A02F #2FA072
square
#3A2FA0 #A02F5C #95A02F #2FA072
split-complementary
#3A2FA0 #A0722F #5CA02F
monochromatic
#181341 #292171 #3A2FA0 #5144C8 #7D73D6

Accessibility & contrast

On white

10.03
#3A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#3A2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FA0
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FA0#FFFFFF#000000##FFFFFF
##3A2FA01.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a2fa0;
/* rgb */ color: rgb(58, 47, 160);
/* oklch */ color: oklch(39.6% 0.174 279.3);
Tailwind
colors: {
  custom: {
    50: '#7d69bd',
    500: '#3a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fa0;
$custom-light: #7d69bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fa0",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 245.841,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39625,
    "c": 0.17399,
    "h": 279.3
  },
  "luminance": 0.05471
}

Semantic roles & 50–950 ramp

primary
#3A2FA0
secondary
#B6BE6D
accent
#DE4AD0
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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