#3A2FB5#3A2FB5

#3A2FB5 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.200 H 276.9°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#3A2FB5
RGBrgb(58, 47, 181)
HSLhsl(245, 59%, 45%)
HSVhsv(245, 74%, 71%)
CMYKcmyk(68%, 74%, 0%, 29%)
CIE-LABlab(30.08, 45.78, -68.79)
CIE-LCHlch(30.08, 82.63, 303.64°)
OKLaboklab(41.7% 0.024 -0.1987)
OKLCHoklch(41.7% 0.2 276.9)
XYZxyz(11.0992, 6.2678, 44.3320)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2FB5 #AAB52F
analogous
#2F67B5 #3A2FB5 #7D2FB5
triadic
#3A2FB5 #B53A2F #2FB53A
tetradic
#3A2FB5 #B52F67 #AAB52F #2FB57D
square
#3A2FB5 #B52F67 #AAB52F #2FB57D
split-complementary
#3A2FB5 #B57D2F #67B52F
monochromatic
#1B1654 #2A2284 #3A2FB5 #5A50D1 #8880DE

Accessibility & contrast

On white

9.32
#3A2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#3A2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2FB5
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2FB5#FFFFFF#000000##FFFFFF
##3A2FB51.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a2fb5;
/* rgb */ color: rgb(58, 47, 181);
/* oklch */ color: oklch(41.7% 0.200 276.9);
Tailwind
colors: {
  custom: {
    50: '#816acc',
    500: '#3a2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #3a2fb5;
$custom-light: #816acc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2fb5",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 244.925,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.417,
    "c": 0.2002,
    "h": 276.9
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#3A2FB5
secondary
#C1C779
accent
#E246D5
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #3A2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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