#3A52B3#3A52B3

#3A52B3 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.156 H 269.2°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#3A52B3
RGBrgb(58, 82, 179)
HSLhsl(228, 51%, 46%)
HSVhsv(228, 68%, 70%)
CMYKcmyk(67.6%, 54.2%, 0%, 29.8%)
CIE-LABlab(38.18, 23.41, -54.37)
CIE-LCHlch(38.18, 59.20, 293.29°)
OKLaboklab(47.58% -0.0022 -0.1563)
OKLCHoklch(47.58% 0.156 269.2)
XYZxyz(12.8961, 10.1876, 43.9259)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52B3 #B39B3A
analogous
#3A8FB3 #3A52B3 #5F3AB3
triadic
#3A52B3 #B33A52 #52B33A
tetradic
#3A52B3 #B33A8F #B39B3A #3AB35F
square
#3A52B3 #B33A8F #B39B3A #3AB35F
split-complementary
#3A52B3 #B35F3A #8FB33A
monochromatic
#1C2857 #2B3D85 #3A52B3 #5F74CB #8D9DDA

Accessibility & contrast

On white

6.91
#3A52B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3A52B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52B3
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52B3#FFFFFF#000000##FFFFFF
##3A52B31.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A60B6
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a52b3;
/* rgb */ color: rgb(58, 82, 179);
/* oklch */ color: oklch(47.6% 0.156 269.2);
Tailwind
colors: {
  custom: {
    50: '#7e82ca',
    500: '#3a52b3',
    950: '#000000',
  },
}
SCSS
$custom: #3a52b3;
$custom-light: #7e82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52b3",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 228.099,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47582,
    "c": 0.15632,
    "h": 269.2
  },
  "luminance": 0.10189
}

Semantic roles & 50–950 ramp

primary
#3A52B3
secondary
#C5B884
accent
#BF4DDB
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3A52B3

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

Preview Lab → · Contrast checker → · Palette generator →

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