#3852CD#3852CD

#3852CD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.6% C 0.192 H 269.0°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#3852CD
RGBrgb(56, 82, 205)
HSLhsl(230, 60%, 51%)
HSVhsv(230, 73%, 80%)
CMYKcmyk(72.7%, 60%, 0%, 19.6%)
CIE-LABlab(40.05, 32.53, -66.50)
CIE-LCHlch(40.05, 74.03, 296.07°)
OKLaboklab(49.58% -0.0033 -0.192)
OKLCHoklch(49.58% 0.192 269)
XYZxyz(15.6638, 11.2815, 59.0978)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852CD #CDB338
analogous
#389CCD #3852CD #6838CD
triadic
#3852CD #CD3852 #52CD38
tetradic
#3852CD #CD389C #CDB338 #38CD68
square
#3852CD #CD389C #CDB338 #38CD68
split-complementary
#3852CD #CD6838 #9CCD38
monochromatic
#1C2A6F #283DA0 #3852CD #697DD9 #9AA7E6

Accessibility & contrast

On white

6.45
#3852CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3852CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852CD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852CD#FFFFFF#000000##FFFFFF
##3852CD1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3852cd;
/* rgb */ color: rgb(56, 82, 205);
/* oklch */ color: oklch(49.6% 0.192 269.0);
Tailwind
colors: {
  custom: {
    50: '#8382dd',
    500: '#3852cd',
    950: '#000000',
  },
}
SCSS
$custom: #3852cd;
$custom-light: #8382dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3852cd",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 229.53,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49576,
    "c": 0.19203,
    "h": 269
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#3852CD
secondary
#D1C68F
accent
#C745E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3852CD

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

Preview Lab → · Contrast checker → · Palette generator →

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