#3852B3#3852B3

#3852B3 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.157 H 268.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#3852B3
RGBrgb(56, 82, 179)
HSLhsl(227, 52%, 46%)
HSVhsv(227, 69%, 70%)
CMYKcmyk(68.7%, 54.2%, 0%, 29.8%)
CIE-LABlab(38.07, 23.10, -54.55)
CIE-LCHlch(38.07, 59.23, 292.95°)
OKLaboklab(47.48% -0.0042 -0.1569)
OKLCHoklch(47.48% 0.157 268.5)
XYZxyz(12.7821, 10.1288, 43.9205)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852B3 #B39938
analogous
#388FB3 #3852B3 #5B38B3
triadic
#3852B3 #B33852 #52B338
tetradic
#3852B3 #B3388F #B39938 #38B35B
square
#3852B3 #B3388F #B39938 #38B35B
split-complementary
#3852B3 #B35B38 #8FB338
monochromatic
#1B2756 #293D84 #3852B3 #5C74CC #8B9CDB

Accessibility & contrast

On white

6.94
#3852B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3852B3
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852B3#FFFFFF#000000##FFFFFF
##3852B31.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB6
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3852b3;
/* rgb */ color: rgb(56, 82, 179);
/* oklch */ color: oklch(47.5% 0.157 268.5);
Tailwind
colors: {
  custom: {
    50: '#7d82ca',
    500: '#3852b3',
    950: '#000000',
  },
}
SCSS
$custom: #3852b3;
$custom-light: #7d82ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3852b3",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 227.317,
    "s": 52.34,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47475,
    "c": 0.15692,
    "h": 268.5
  },
  "luminance": 0.1013
}

Semantic roles & 50–950 ramp

primary
#3852B3
secondary
#C5B782
accent
#BD4CDC
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3852B3

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

Preview Lab → · Contrast checker → · Palette generator →

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