#3852CB#3852CB

#3852CB is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.4% C 0.189 H 269.0°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#3852CB
RGBrgb(56, 82, 203)
HSLhsl(229, 59%, 51%)
HSVhsv(229, 72%, 80%)
CMYKcmyk(72.4%, 59.6%, 0%, 20.4%)
CIE-LABlab(39.89, 31.81, -65.61)
CIE-LCHlch(39.89, 72.91, 295.87°)
OKLaboklab(49.41% -0.0033 -0.1894)
OKLCHoklch(49.41% 0.189 269)
XYZxyz(15.4240, 11.1855, 57.8345)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852CB #CBB138
analogous
#389BCB #3852CB #6738CB
triadic
#3852CB #CB3852 #52CB38
tetradic
#3852CB #CB389B #CBB138 #38CB67
square
#3852CB #CB389B #CBB138 #38CB67
split-complementary
#3852CB #CB6738 #9BCB38
monochromatic
#1C2A6C #293D9D #3852CB #697CD8 #99A6E4

Accessibility & contrast

On white

6.49
#3852CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3852CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3852CB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852CB#FFFFFF#000000##FFFFFF
##3852CB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#007186
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3852cb;
/* rgb */ color: rgb(56, 82, 203);
/* oklch */ color: oklch(49.4% 0.189 269.0);
Tailwind
colors: {
  custom: {
    50: '#8282dc',
    500: '#3852cb',
    950: '#000000',
  },
}
SCSS
$custom: #3852cb;
$custom-light: #8282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3852cb",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 229.388,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49408,
    "c": 0.1894,
    "h": 269
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#3852CB
secondary
#D0C48F
accent
#C646E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3852CB

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

Preview Lab → · Contrast checker → · Palette generator →

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