#3A52C3#3A52C3

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

Color values

HEX#3A52C3
RGBrgb(58, 82, 195)
HSLhsl(229, 54%, 50%)
HSVhsv(229, 70%, 76%)
CMYKcmyk(70.3%, 57.9%, 0%, 23.5%)
CIE-LABlab(39.37, 29.19, -61.82)
CIE-LCHlch(39.37, 68.36, 295.28°)
OKLaboklab(48.85% -0.0015 -0.1782)
OKLCHoklch(48.85% 0.178 269.5)
XYZxyz(14.6092, 10.8728, 52.9479)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52C3 #C3AB3A
analogous
#3A97C3 #3A52C3 #673AC3
triadic
#3A52C3 #C33A52 #52C33A
tetradic
#3A52C3 #C33A97 #C3AB3A #3AC367
square
#3A52C3 #C33A97 #C3AB3A #3AC367
split-complementary
#3A52C3 #C3673A #97C33A
monochromatic
#1E2A65 #2C3E94 #3A52C3 #687BD2 #97A4E0

Accessibility & contrast

On white

6.61
#3A52C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3A52C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52C3
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52C3#FFFFFF#000000##FFFFFF
##3A52C31.006.613.176.61
#FFFFFF6.611.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C7
Deuteranopia (green-blind)
#0057C1
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a52c3;
/* rgb */ color: rgb(58, 82, 195);
/* oklch */ color: oklch(48.8% 0.178 269.5);
Tailwind
colors: {
  custom: {
    50: '#8182d6',
    500: '#3a52c3',
    950: '#000000',
  },
}
SCSS
$custom: #3a52c3;
$custom-light: #8182d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52c3",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 195
  },
  "hsl": {
    "h": 229.489,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48847,
    "c": 0.1782,
    "h": 269.5
  },
  "luminance": 0.10874
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A52C3

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

Preview Lab → · Contrast checker → · Palette generator →

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