#3A52AA#3A52AA

#3A52AA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.144 H 268.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#3A52AA
RGBrgb(58, 82, 170)
HSLhsl(227, 49%, 45%)
HSVhsv(227, 66%, 67%)
CMYKcmyk(65.9%, 51.8%, 0%, 33.3%)
CIE-LABlab(37.55, 20.14, -50.06)
CIE-LCHlch(37.55, 53.96, 291.92°)
OKLaboklab(46.9% -0.003 -0.1436)
OKLCHoklch(46.9% 0.144 268.8)
XYZxyz(12.0154, 9.8353, 39.2876)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52AA #AA923A
analogous
#3A8AAA #3A52AA #5A3AAA
triadic
#3A52AA #AA3A52 #52AA3A
tetradic
#3A52AA #AA3A8A #AA923A #3AAA5A
square
#3A52AA #AA3A8A #AA923A #3AAA5A
split-complementary
#3A52AA #AA5A3A #8AAA3A
monochromatic
#1B264F #2A3C7C #3A52AA #5A72C7 #8899D6

Accessibility & contrast

On white

7.08
#3A52AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3A52AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A52AA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52AA#FFFFFF#000000##FFFFFF
##3A52AA1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5EAD
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3a52aa;
/* rgb */ color: rgb(58, 82, 170);
/* oklch */ color: oklch(46.9% 0.144 268.8);
Tailwind
colors: {
  custom: {
    50: '#7c82c4',
    500: '#3a52aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a52aa;
$custom-light: #7c82c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52aa",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 227.143,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46904,
    "c": 0.14366,
    "h": 268.8
  },
  "luminance": 0.09836
}

Semantic roles & 50–950 ramp

primary
#3A52AA
secondary
#C1B37F
accent
#BB4FD9
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3A52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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