#3A52C4#3A52C4

#3A52C4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.180 H 269.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#3A52C4
RGBrgb(58, 82, 196)
HSLhsl(230, 54%, 50%)
HSVhsv(230, 70%, 77%)
CMYKcmyk(70.4%, 58.2%, 0%, 23.1%)
CIE-LABlab(39.44, 29.55, -62.27)
CIE-LCHlch(39.44, 68.93, 295.38°)
OKLaboklab(48.93% -0.0015 -0.1795)
OKLCHoklch(48.93% 0.18 269.5)
XYZxyz(14.7226, 10.9182, 53.5454)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52C4 #C4AC3A
analogous
#3A97C4 #3A52C4 #673AC4
triadic
#3A52C4 #C43A52 #52C43A
tetradic
#3A52C4 #C43A97 #C4AC3A #3AC467
square
#3A52C4 #C43A97 #C4AC3A #3AC467
split-complementary
#3A52C4 #C4673A #97C43A
monochromatic
#1E2A66 #2C3E95 #3A52C4 #697BD3 #98A5E0

Accessibility & contrast

On white

6.60
#3A52C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3A52C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52C4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52C4#FFFFFF#000000##FFFFFF
##3A52C41.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a52c4;
/* rgb */ color: rgb(58, 82, 196);
/* oklch */ color: oklch(48.9% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#8282d7',
    500: '#3a52c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a52c4;
$custom-light: #8282d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52c4",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 196
  },
  "hsl": {
    "h": 229.565,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48929,
    "c": 0.17955,
    "h": 269.5
  },
  "luminance": 0.1092
}

Semantic roles & 50–950 ramp

primary
#3A52C4
secondary
#CCC18E
accent
#C44ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A52C4

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

Preview Lab → · Contrast checker → · Palette generator →

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