#3852B7#3852B7

#3852B7 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.162 H 268.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#3852B7
RGBrgb(56, 82, 183)
HSLhsl(228, 53%, 47%)
HSVhsv(228, 69%, 72%)
CMYKcmyk(69.4%, 55.2%, 0%, 28.2%)
CIE-LABlab(38.36, 24.56, -56.43)
CIE-LCHlch(38.36, 61.54, 293.52°)
OKLaboklab(47.79% -0.0039 -0.1624)
OKLCHoklch(47.79% 0.162 268.6)
XYZxyz(13.1925, 10.2929, 46.0820)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852B7 #B79D38
analogous
#3891B7 #3852B7 #5E38B7
triadic
#3852B7 #B73852 #52B738
tetradic
#3852B7 #B73891 #B79D38 #38B75E
square
#3852B7 #B73891 #B79D38 #38B75E
split-complementary
#3852B7 #B75E38 #91B738
monochromatic
#1B2859 #2A3D88 #3852B7 #5E75CE #8D9DDC

Accessibility & contrast

On white

6.87
#3852B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3852B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852B7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852B7#FFFFFF#000000##FFFFFF
##3852B71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BA
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3852b7;
/* rgb */ color: rgb(56, 82, 183);
/* oklch */ color: oklch(47.8% 0.162 268.6);
Tailwind
colors: {
  custom: {
    50: '#7e82cd',
    500: '#3852b7',
    950: '#000000',
  },
}
SCSS
$custom: #3852b7;
$custom-light: #7e82cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3852b7",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 227.717,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.16245,
    "h": 268.6
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#3852B7
secondary
#C7B984
accent
#BF4BDD
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3852B7

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

Preview Lab → · Contrast checker → · Palette generator →

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