#3A52BA#3A52BA

#3A52BA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.166 H 269.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3A52BA
RGBrgb(58, 82, 186)
HSLhsl(229, 52%, 48%)
HSVhsv(229, 69%, 73%)
CMYKcmyk(68.8%, 55.9%, 0%, 27.1%)
CIE-LABlab(38.69, 25.94, -57.66)
CIE-LCHlch(38.69, 63.23, 294.22°)
OKLaboklab(48.13% -0.0018 -0.166)
OKLCHoklch(48.13% 0.166 269.4)
XYZxyz(13.6221, 10.4780, 47.7494)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52BA #BAA23A
analogous
#3A92BA #3A52BA #623ABA
triadic
#3A52BA #BA3A52 #52BA3A
tetradic
#3A52BA #BA3A92 #BAA23A #3ABA62
square
#3A52BA #BA3A92 #BAA23A #3ABA62
split-complementary
#3A52BA #BA623A #92BA3A
monochromatic
#1D295D #2B3D8B #3A52BA #6377CE #92A0DD

Accessibility & contrast

On white

6.78
#3A52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3A52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52BA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52BA#FFFFFF#000000##FFFFFF
##3A52BA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3a52ba;
/* rgb */ color: rgb(58, 82, 186);
/* oklch */ color: oklch(48.1% 0.166 269.4);
Tailwind
colors: {
  custom: {
    50: '#8082cf',
    500: '#3a52ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a52ba;
$custom-light: #8082cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52ba",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 228.75,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48126,
    "c": 0.16599,
    "h": 269.4
  },
  "luminance": 0.10479
}

Semantic roles & 50–950 ramp

primary
#3A52BA
secondary
#C8BC88
accent
#C14CDC
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3A52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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