#3A52B2#3A52B2

#3A52B2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.155 H 269.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#3A52B2
RGBrgb(58, 82, 178)
HSLhsl(228, 51%, 46%)
HSVhsv(228, 67%, 70%)
CMYKcmyk(67.4%, 53.9%, 0%, 30.2%)
CIE-LABlab(38.11, 23.04, -53.90)
CIE-LCHlch(38.11, 58.62, 293.15°)
OKLaboklab(47.51% -0.0023 -0.1549)
OKLCHoklch(47.51% 0.155 269.2)
XYZxyz(12.7954, 10.1473, 43.3952)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52B2 #B29A3A
analogous
#3A8EB2 #3A52B2 #5E3AB2
triadic
#3A52B2 #B23A52 #52B23A
tetradic
#3A52B2 #B23A8E #B29A3A #3AB25E
square
#3A52B2 #B23A8E #B29A3A #3AB25E
split-complementary
#3A52B2 #B25E3A #8EB23A
monochromatic
#1C2756 #2B3D84 #3A52B2 #5F74CB #8D9CDA

Accessibility & contrast

On white

6.93
#3A52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3A52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52B2
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52B2#FFFFFF#000000##FFFFFF
##3A52B21.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5FB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3a52b2;
/* rgb */ color: rgb(58, 82, 178);
/* oklch */ color: oklch(47.5% 0.155 269.2);
Tailwind
colors: {
  custom: {
    50: '#7e82ca',
    500: '#3a52b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a52b2;
$custom-light: #7e82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52b2",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 228,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47505,
    "c": 0.15492,
    "h": 269.2
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#3A52B2
secondary
#C4B783
accent
#BE4DDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3A52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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