#3870CB#3870CB

#3870CB is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.5% C 0.153 H 259.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#3870CB
RGBrgb(56, 112, 203)
HSLhsl(217, 59%, 51%)
HSVhsv(217, 72%, 80%)
CMYKcmyk(72.4%, 44.8%, 0%, 20.4%)
CIE-LABlab(47.93, 12.64, -52.61)
CIE-LCHlch(47.93, 54.10, 283.51°)
OKLaboklab(55.5% -0.0275 -0.1507)
OKLCHoklch(55.5% 0.153 259.7)
XYZxyz(18.2007, 16.7389, 58.7600)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3870CB #CB9338
analogous
#38B9CB #3870CB #4938CB
triadic
#3870CB #CB3870 #70CB38
tetradic
#3870CB #CB38B9 #CB9338 #38CB49
square
#3870CB #CB38B9 #CB9338 #38CB49
split-complementary
#3870CB #CB4938 #B9CB38
monochromatic
#1C3B6C #29559D #3870CB #6993D8 #99B6E4

Accessibility & contrast

On white

4.83
#3870CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#3870CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3870CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3870CB#FFFFFF#000000##FFFFFF
##3870CB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4279CE
Deuteranopia (green-blind)
#246BC9
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3870cb;
/* rgb */ color: rgb(56, 112, 203);
/* oklch */ color: oklch(55.5% 0.153 259.7);
Tailwind
colors: {
  custom: {
    50: '#8198db',
    500: '#3870cb',
    950: '#000000',
  },
}
SCSS
$custom: #3870cb;
$custom-light: #8198db;
$custom-dark: #000000;
JSON
{
  "hex": "#3870cb",
  "rgb": {
    "r": 56,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 217.143,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55503,
    "c": 0.15314,
    "h": 259.7
  },
  "luminance": 0.16741
}

Semantic roles & 50–950 ramp

primary
#3870CB
secondary
#D0B78F
accent
#A646E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3870CB

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

Preview Lab → · Contrast checker → · Palette generator →

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