#3852C5#3852C5

#3852C5 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.181 H 268.9°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#3852C5
RGBrgb(56, 82, 197)
HSLhsl(229, 56%, 50%)
HSVhsv(229, 72%, 77%)
CMYKcmyk(71.6%, 58.4%, 0%, 22.7%)
CIE-LABlab(39.42, 29.65, -62.90)
CIE-LCHlch(39.42, 69.53, 295.24°)
OKLaboklab(48.91% -0.0034 -0.1814)
OKLCHoklch(48.91% 0.181 268.9)
XYZxyz(14.7228, 10.9050, 54.1415)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852C5 #C5AB38
analogous
#3899C5 #3852C5 #6538C5
triadic
#3852C5 #C53852 #52C538
tetradic
#3852C5 #C53899 #C5AB38 #38C565
square
#3852C5 #C53899 #C5AB38 #38C565
split-complementary
#3852C5 #C56538 #99C538
monochromatic
#1D2A66 #2A3E95 #3852C5 #677BD4 #96A4E1

Accessibility & contrast

On white

6.60
#3852C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3852C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852C5
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852C5#FFFFFF#000000##FFFFFF
##3852C51.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0057C3
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3852c5;
/* rgb */ color: rgb(56, 82, 197);
/* oklch */ color: oklch(48.9% 0.181 268.9);
Tailwind
colors: {
  custom: {
    50: '#8182d7',
    500: '#3852c5',
    950: '#000000',
  },
}
SCSS
$custom: #3852c5;
$custom-light: #8182d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3852c5",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 197
  },
  "hsl": {
    "h": 228.936,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4891,
    "c": 0.18144,
    "h": 268.9
  },
  "luminance": 0.10907
}

Semantic roles & 50–950 ramp

primary
#3852C5
secondary
#CDC18C
accent
#C349DF
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3852C5

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

Preview Lab → · Contrast checker → · Palette generator →

#3852C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva