#3A52C6#3A52C6

#3A52C6 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.1% C 0.182 H 269.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#3A52C6
RGBrgb(58, 82, 198)
HSLhsl(230, 55%, 50%)
HSVhsv(230, 71%, 78%)
CMYKcmyk(70.7%, 58.6%, 0%, 22.4%)
CIE-LABlab(39.60, 30.27, -63.18)
CIE-LCHlch(39.60, 70.06, 295.60°)
OKLaboklab(49.09% -0.0015 -0.1822)
OKLCHoklch(49.09% 0.182 269.5)
XYZxyz(14.9518, 11.0098, 54.7523)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52C6 #C6AE3A
analogous
#3A98C6 #3A52C6 #683AC6
triadic
#3A52C6 #C63A52 #52C63A
tetradic
#3A52C6 #C63A98 #C6AE3A #3AC668
square
#3A52C6 #C63A98 #C6AE3A #3AC668
split-complementary
#3A52C6 #C6683A #98C63A
monochromatic
#1E2B68 #2C3E97 #3A52C6 #697CD4 #99A5E1

Accessibility & contrast

On white

6.56
#3A52C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#3A52C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52C6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52C6#FFFFFF#000000##FFFFFF
##3A52C61.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#0057C4
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a52c6;
/* rgb */ color: rgb(58, 82, 198);
/* oklch */ color: oklch(49.1% 0.182 269.5);
Tailwind
colors: {
  custom: {
    50: '#8282d8',
    500: '#3a52c6',
    950: '#000000',
  },
}
SCSS
$custom: #3a52c6;
$custom-light: #8282d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52c6",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 198
  },
  "hsl": {
    "h": 229.714,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.18222,
    "h": 269.5
  },
  "luminance": 0.11011
}

Semantic roles & 50–950 ramp

primary
#3A52C6
secondary
#CDC28F
accent
#C549DE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A52C6

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

Preview Lab → · Contrast checker → · Palette generator →

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