#3A2FA7#3A2FA7

#3A2FA7 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.183 H 278.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#3A2FA7
RGBrgb(58, 47, 167)
HSLhsl(246, 56%, 42%)
HSVhsv(246, 72%, 65%)
CMYKcmyk(65.3%, 71.9%, 0%, 34.5%)
CIE-LABlab(28.70, 41.26, -62.68)
CIE-LCHlch(28.70, 75.04, 303.36°)
OKLaboklab(40.3% 0.0268 -0.1809)
OKLCHoklch(40.3% 0.183 278.4)
XYZxyz(9.7342, 5.7218, 37.1432)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FA7 #9CA72F
analogous
#2F60A7 #3A2FA7 #762FA7
triadic
#3A2FA7 #A73A2F #2FA73A
tetradic
#3A2FA7 #A72F60 #9CA72F #2FA776
square
#3A2FA7 #A72F60 #9CA72F #2FA776
split-complementary
#3A2FA7 #A7762F #60A72F
monochromatic
#191447 #292277 #3A2FA7 #5448CB #8078D9

Accessibility & contrast

On white

9.79
#3A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3A2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FA7
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FA7#FFFFFF#000000##FFFFFF
##3A2FA71.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a2fa7;
/* rgb */ color: rgb(58, 47, 167);
/* oklch */ color: oklch(40.3% 0.183 278.4);
Tailwind
colors: {
  custom: {
    50: '#7e69c2',
    500: '#3a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fa7;
$custom-light: #7e69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fa7",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 245.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.18288,
    "h": 278.4
  },
  "luminance": 0.05723
}

Semantic roles & 50–950 ramp

primary
#3A2FA7
secondary
#BAC171
accent
#DF48D2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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