#3852C2#3852C2

#3852C2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.177 H 268.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3852C2
RGBrgb(56, 82, 194)
HSLhsl(229, 55%, 49%)
HSVhsv(229, 71%, 76%)
CMYKcmyk(71.1%, 57.7%, 0%, 23.9%)
CIE-LABlab(39.19, 28.56, -61.53)
CIE-LCHlch(39.19, 67.83, 294.90°)
OKLaboklab(48.66% -0.0034 -0.1774)
OKLCHoklch(48.66% 0.177 268.9)
XYZxyz(14.3824, 10.7689, 52.3491)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852C2 #C2A838
analogous
#3897C2 #3852C2 #6338C2
triadic
#3852C2 #C23852 #52C238
tetradic
#3852C2 #C23897 #C2A838 #38C263
square
#3852C2 #C23897 #C2A838 #38C263
split-complementary
#3852C2 #C26338 #97C238
monochromatic
#1D2A63 #2A3E93 #3852C2 #6579D2 #94A3E0

Accessibility & contrast

On white

6.66
#3852C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3852C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852C2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852C2#FFFFFF#000000##FFFFFF
##3852C21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3852c2;
/* rgb */ color: rgb(56, 82, 194);
/* oklch */ color: oklch(48.7% 0.177 268.9);
Tailwind
colors: {
  custom: {
    50: '#8082d5',
    500: '#3852c2',
    950: '#000000',
  },
}
SCSS
$custom: #3852c2;
$custom-light: #8082d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3852c2",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 228.696,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48664,
    "c": 0.17741,
    "h": 268.9
  },
  "luminance": 0.1077
}

Semantic roles & 50–950 ramp

primary
#3852C2
secondary
#CBBF8A
accent
#C249DF
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3852C2

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

Preview Lab → · Contrast checker → · Palette generator →

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