#3A2C84#3A2C84

#3A2C84 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.141 H 284.3°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3A2C84
RGBrgb(58, 44, 132)
HSLhsl(250, 50%, 35%)
HSVhsv(250, 67%, 52%)
CMYKcmyk(56.1%, 66.7%, 0%, 48.2%)
CIE-LABlab(24.85, 31.59, -47.48)
CIE-LCHlch(24.85, 57.03, 303.64°)
OKLaboklab(36.55% 0.0347 -0.1364)
OKLCHoklch(36.55% 0.141 284.3)
XYZxyz(6.8092, 4.3665, 22.3093)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2C84 #76842C
analogous
#2C4A84 #3A2C84 #662C84
triadic
#3A2C84 #843A2C #2C843A
tetradic
#3A2C84 #842C4A #76842C #2C8466
square
#3A2C84 #842C4A #76842C #2C8466
split-complementary
#3A2C84 #84662C #4A842C
monochromatic
#120D28 #261D56 #3A2C84 #4E3BB2 #7160CA

Accessibility & contrast

On white

11.21
#3A2C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A2C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2C84
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2C84#FFFFFF#000000##FFFFFF
##3A2C841.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#194254
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2c84;
/* rgb */ color: rgb(58, 44, 132);
/* oklch */ color: oklch(36.6% 0.141 284.3);
Tailwind
colors: {
  custom: {
    50: '#7866a9',
    500: '#3a2c84',
    950: '#000000',
  },
}
SCSS
$custom: #3a2c84;
$custom-light: #7866a9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2c84",
  "rgb": {
    "r": 58,
    "g": 44,
    "b": 132
  },
  "hsl": {
    "h": 249.545,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.14071,
    "h": 284.3
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#3A2C84
secondary
#A3B05C
accent
#DA4EC3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #3A2C84

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

Preview Lab → · Contrast checker → · Palette generator →

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