#3978D2#3978D2

#3978D2 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 57.7% C 0.153 H 257.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#3978D2
RGBrgb(57, 120, 210)
HSLhsl(215, 63%, 52%)
HSVhsv(215, 73%, 82%)
CMYKcmyk(72.9%, 42.9%, 0%, 17.6%)
CIE-LABlab(50.63, 10.34, -52.27)
CIE-LCHlch(50.63, 53.28, 281.19°)
OKLaboklab(57.74% -0.0325 -0.1495)
OKLCHoklch(57.74% 0.153 257.7)
XYZxyz(20.0324, 18.9537, 63.5629)
Luminance0.1896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3978D2 #D29339
analogous
#39C5D2 #3978D2 #4639D2
triadic
#3978D2 #D23978 #78D239
tetradic
#3978D2 #D239C5 #D29339 #39D246
square
#3978D2 #D239C5 #D29339 #39D246
split-complementary
#3978D2 #D24639 #C5D239
monochromatic
#1B4076 #265BA8 #3978D2 #6B9ADD #9DBCE9

Accessibility & contrast

On white

4.38
#3978D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#3978D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3978D2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3978D2#FFFFFF#000000##000000
##3978D21.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C80D5
Deuteranopia (green-blind)
#3072D0
Tritanopia (blue-blind)
#008D9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #3978d2;
/* rgb */ color: rgb(57, 120, 210);
/* oklch */ color: oklch(57.7% 0.153 257.7);
Tailwind
colors: {
  custom: {
    50: '#829ee0',
    500: '#3978d2',
    950: '#000000',
  },
}
SCSS
$custom: #3978d2;
$custom-light: #829ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#3978d2",
  "rgb": {
    "r": 57,
    "g": 120,
    "b": 210
  },
  "hsl": {
    "h": 215.294,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57736,
    "c": 0.153,
    "h": 257.7
  },
  "luminance": 0.18956
}

Semantic roles & 50–950 ramp

primary
#3978D2
secondary
#D5B992
accent
#A242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3978D2

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

Preview Lab → · Contrast checker → · Palette generator →

#3978D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva