#3A52C0#3A52C0

#3A52C0 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.174 H 269.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#3A52C0
RGBrgb(58, 82, 192)
HSLhsl(229, 54%, 49%)
HSVhsv(229, 70%, 75%)
CMYKcmyk(69.8%, 57.3%, 0%, 24.7%)
CIE-LABlab(39.14, 28.11, -60.44)
CIE-LCHlch(39.14, 66.66, 294.94°)
OKLaboklab(48.61% -0.0016 -0.1741)
OKLCHoklch(48.61% 0.174 269.5)
XYZxyz(14.2734, 10.7385, 51.1795)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A52C0 #C0A83A
analogous
#3A95C0 #3A52C0 #653AC0
triadic
#3A52C0 #C03A52 #52C03A
tetradic
#3A52C0 #C03A95 #C0A83A #3AC065
square
#3A52C0 #C03A95 #C0A83A #3AC065
split-complementary
#3A52C0 #C0653A #95C03A
monochromatic
#1E2A62 #2C3E91 #3A52C0 #6679D1 #95A3DF

Accessibility & contrast

On white

6.67
#3A52C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3A52C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A52C0
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A52C0#FFFFFF#000000##FFFFFF
##3A52C01.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#0056BE
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3a52c0;
/* rgb */ color: rgb(58, 82, 192);
/* oklch */ color: oklch(48.6% 0.174 269.5);
Tailwind
colors: {
  custom: {
    50: '#8182d4',
    500: '#3a52c0',
    950: '#000000',
  },
}
SCSS
$custom: #3a52c0;
$custom-light: #8182d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a52c0",
  "rgb": {
    "r": 58,
    "g": 82,
    "b": 192
  },
  "hsl": {
    "h": 229.254,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48605,
    "c": 0.17416,
    "h": 269.5
  },
  "luminance": 0.1074
}

Semantic roles & 50–950 ramp

primary
#3A52C0
secondary
#CABF8B
accent
#C34BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3A52C0

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

Preview Lab → · Contrast checker → · Palette generator →

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