#3852D1#3852D1

#3852D1 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.9% C 0.197 H 269.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#3852D1
RGBrgb(56, 82, 209)
HSLhsl(230, 62%, 52%)
HSVhsv(230, 73%, 82%)
CMYKcmyk(73.2%, 60.8%, 0%, 18%)
CIE-LABlab(40.37, 33.97, -68.28)
CIE-LCHlch(40.37, 76.27, 296.45°)
OKLaboklab(49.92% -0.0033 -0.1972)
OKLCHoklch(49.92% 0.197 269)
XYZxyz(16.1528, 11.4771, 61.6732)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852D1 #D1B738
analogous
#389FD1 #3852D1 #6B38D1
triadic
#3852D1 #D13852 #52D138
tetradic
#3852D1 #D1389F #D1B738 #38D16B
square
#3852D1 #D1389F #D1B738 #38D16B
split-complementary
#3852D1 #D16B38 #9FD138
monochromatic
#1B2A74 #263CA6 #3852D1 #6A7DDC #9BA8E8

Accessibility & contrast

On white

6.37
#3852D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#3852D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852D1
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852D1#FFFFFF#000000##FFFFFF
##3852D11.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3852d1;
/* rgb */ color: rgb(56, 82, 209);
/* oklch */ color: oklch(49.9% 0.197 269.0);
Tailwind
colors: {
  custom: {
    50: '#8482e0',
    500: '#3852d1',
    950: '#000000',
  },
}
SCSS
$custom: #3852d1;
$custom-light: #8482e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3852d1",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 229.804,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49915,
    "c": 0.19726,
    "h": 269
  },
  "luminance": 0.11479
}

Semantic roles & 50–950 ramp

primary
#3852D1
secondary
#D4C991
accent
#CA42E6
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3852D1

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

Preview Lab → · Contrast checker → · Palette generator →

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