#3852B4#3852B4

#3852B4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.158 H 268.5°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#3852B4
RGBrgb(56, 82, 180)
HSLhsl(227, 53%, 46%)
HSVhsv(227, 69%, 71%)
CMYKcmyk(68.9%, 54.4%, 0%, 29.4%)
CIE-LABlab(38.14, 23.46, -55.02)
CIE-LCHlch(38.14, 59.81, 293.09°)
OKLaboklab(47.55% -0.0041 -0.1582)
OKLCHoklch(47.55% 0.158 268.5)
XYZxyz(12.8836, 10.1694, 44.4551)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852B4 #B49A38
analogous
#3890B4 #3852B4 #5C38B4
triadic
#3852B4 #B43852 #52B438
tetradic
#3852B4 #B43890 #B49A38 #38B45C
square
#3852B4 #B43890 #B49A38 #38B45C
split-complementary
#3852B4 #B45C38 #90B438
monochromatic
#1B2757 #293D85 #3852B4 #5D74CD #8B9CDB

Accessibility & contrast

On white

6.92
#3852B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3852B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852B4
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852B4#FFFFFF#000000##FFFFFF
##3852B41.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0460B7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3852b4;
/* rgb */ color: rgb(56, 82, 180);
/* oklch */ color: oklch(47.6% 0.158 268.5);
Tailwind
colors: {
  custom: {
    50: '#7d82cb',
    500: '#3852b4',
    950: '#000000',
  },
}
SCSS
$custom: #3852b4;
$custom-light: #7d82cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3852b4",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 227.419,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.1583,
    "h": 268.5
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#3852B4
secondary
#C5B782
accent
#BE4CDC
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3852B4

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

Preview Lab → · Contrast checker → · Palette generator →

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