#3870CC#3870CC

#3870CC is a mid, vivid blue. Relative luminance 0.168; OKLCH L 55.6% C 0.154 H 259.8°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#3870CC
RGBrgb(56, 112, 204)
HSLhsl(217, 59%, 51%)
HSVhsv(217, 73%, 80%)
CMYKcmyk(72.5%, 45.1%, 0%, 20%)
CIE-LABlab(47.99, 13.00, -53.08)
CIE-LCHlch(47.99, 54.65, 283.77°)
OKLaboklab(55.57% -0.0273 -0.1521)
OKLCHoklch(55.57% 0.154 259.8)
XYZxyz(18.3202, 16.7867, 59.3897)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870CC #CC9438
analogous
#38BACC #3870CC #4A38CC
triadic
#3870CC #CC3870 #70CC38
tetradic
#3870CC #CC38BA #CC9438 #38CC4A
square
#3870CC #CC38BA #CC9438 #38CC4A
split-complementary
#3870CC #CC4A38 #BACC38
monochromatic
#1C3B6E #29559E #3870CC #6993D8 #99B6E5

Accessibility & contrast

On white

4.82
#3870CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#3870CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870CC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870CC#FFFFFF#000000##FFFFFF
##3870CC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4179CF
Deuteranopia (green-blind)
#226CCA
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3870cc;
/* rgb */ color: rgb(56, 112, 204);
/* oklch */ color: oklch(55.6% 0.154 259.8);
Tailwind
colors: {
  custom: {
    50: '#8198dc',
    500: '#3870cc',
    950: '#000000',
  },
}
SCSS
$custom: #3870cc;
$custom-light: #8198dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3870cc",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 217.297,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55569,
    "c": 0.15449,
    "h": 259.8
  },
  "luminance": 0.16789
}

Semantic roles & 50–950 ramp

primary
#3870CC
secondary
#D1B88F
accent
#A745E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3870CC

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

Preview Lab → · Contrast checker → · Palette generator →

#3870CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva