#3A52AC#3A52AC

#3A52AC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.146 H 268.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#3A52AC
RGBrgb(58, 82, 172)
HSLhsl(227, 50%, 45%)
HSVhsv(227, 66%, 67%)
CMYKcmyk(66.3%, 52.3%, 0%, 32.5%)
CIE-LABlab(37.68, 20.87, -51.03)
CIE-LCHlch(37.68, 55.13, 292.24°)
OKLaboklab(47.05% -0.0028 -0.1465)
OKLCHoklch(47.05% 0.147 268.9)
XYZxyz(12.2061, 9.9116, 40.2916)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52AC #AC943A
analogous
#3A8BAC #3A52AC #5B3AAC
triadic
#3A52AC #AC3A52 #52AC3A
tetradic
#3A52AC #AC3A8B #AC943A #3AAC5B
square
#3A52AC #AC3A8B #AC943A #3AAC5B
split-complementary
#3A52AC #AC5B3A #8BAC3A
monochromatic
#1B2650 #2B3C7E #3A52AC #5B72C8 #899AD7

Accessibility & contrast

On white

7.04
#3A52AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#3A52AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A52AC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52AC#FFFFFF#000000##FFFFFF
##3A52AC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3a52ac;
/* rgb */ color: rgb(58, 82, 172);
/* oklch */ color: oklch(47.1% 0.146 268.9);
Tailwind
colors: {
  custom: {
    50: '#7d82c5',
    500: '#3a52ac',
    950: '#000000',
  },
}
SCSS
$custom: #3a52ac;
$custom-light: #7d82c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52ac",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 227.368,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47052,
    "c": 0.1465,
    "h": 268.9
  },
  "luminance": 0.09913
}

Semantic roles & 50–950 ramp

primary
#3A52AC
secondary
#C2B480
accent
#BC4FD9
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3A52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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