#3951C7#3951C7

#3951C7 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.9% C 0.185 H 269.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#3951C7
RGBrgb(57, 81, 199)
HSLhsl(230, 56%, 50%)
HSVhsv(230, 71%, 78%)
CMYKcmyk(71.4%, 59.3%, 0%, 22%)
CIE-LABlab(39.37, 31.14, -64.13)
CIE-LCHlch(39.37, 71.29, 295.90°)
OKLaboklab(48.94% -0.0017 -0.185)
OKLCHoklch(48.94% 0.185 269.5)
XYZxyz(14.9350, 10.8767, 55.3341)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951C7 #C7AF39
analogous
#3998C7 #3951C7 #6839C7
triadic
#3951C7 #C73951 #51C739
tetradic
#3951C7 #C73998 #C7AF39 #39C768
square
#3951C7 #C73998 #C7AF39 #39C768
split-complementary
#3951C7 #C76839 #98C739
monochromatic
#1D2A68 #2B3D98 #3951C7 #697BD4 #98A5E2

Accessibility & contrast

On white

6.61
#3951C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3951C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951C7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951C7#FFFFFF#000000##FFFFFF
##3951C71.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3951c7;
/* rgb */ color: rgb(57, 81, 199);
/* oklch */ color: oklch(48.9% 0.185 269.5);
Tailwind
colors: {
  custom: {
    50: '#8281d9',
    500: '#3951c7',
    950: '#000000',
  },
}
SCSS
$custom: #3951c7;
$custom-light: #8281d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3951c7",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 229.859,
    "s": 55.906,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48936,
    "c": 0.18504,
    "h": 269.5
  },
  "luminance": 0.10878
}

Semantic roles & 50–950 ramp

primary
#3951C7
secondary
#CEC38E
accent
#C649DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3951C7

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

Preview Lab → · Contrast checker → · Palette generator →

#3951C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva