#3852C1#3852C1

#3852C1 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.176 H 268.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3852C1
RGBrgb(56, 82, 193)
HSLhsl(229, 55%, 49%)
HSVhsv(229, 71%, 76%)
CMYKcmyk(71%, 57.5%, 0%, 24.3%)
CIE-LABlab(39.11, 28.20, -61.07)
CIE-LCHlch(39.11, 67.26, 294.78°)
OKLaboklab(48.58% -0.0035 -0.176)
OKLCHoklch(48.58% 0.176 268.9)
XYZxyz(14.2705, 10.7241, 51.7596)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852C1 #C1A738
analogous
#3897C1 #3852C1 #6338C1
triadic
#3852C1 #C13852 #52C138
tetradic
#3852C1 #C13897 #C1A738 #38C163
square
#3852C1 #C13897 #C1A738 #38C163
split-complementary
#3852C1 #C16338 #97C138
monochromatic
#1C2A62 #2A3E92 #3852C1 #6479D2 #94A2E0

Accessibility & contrast

On white

6.68
#3852C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3852C1
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852C1#FFFFFF#000000##FFFFFF
##3852C11.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C5
Deuteranopia (green-blind)
#0056BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3852c1;
/* rgb */ color: rgb(56, 82, 193);
/* oklch */ color: oklch(48.6% 0.176 268.9);
Tailwind
colors: {
  custom: {
    50: '#8082d5',
    500: '#3852c1',
    950: '#000000',
  },
}
SCSS
$custom: #3852c1;
$custom-light: #8082d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3852c1",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 193
  },
  "hsl": {
    "h": 228.613,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48583,
    "c": 0.17607,
    "h": 268.9
  },
  "luminance": 0.10726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3852C1

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

Preview Lab → · Contrast checker → · Palette generator →

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