#3951BF#3951BF

#3951BF is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.3% C 0.174 H 269.4°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#3951BF
RGBrgb(57, 81, 191)
HSLhsl(229, 54%, 49%)
HSVhsv(229, 70%, 75%)
CMYKcmyk(70.2%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.75, 28.25, -60.49)
CIE-LCHlch(38.75, 66.76, 295.04°)
OKLaboklab(48.28% -0.0018 -0.1743)
OKLCHoklch(48.28% 0.174 269.4)
XYZxyz(14.0305, 10.5149, 50.5703)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951BF #BFA739
analogous
#3994BF #3951BF #6439BF
triadic
#3951BF #BF3951 #51BF39
tetradic
#3951BF #BF3994 #BFA739 #39BF64
square
#3951BF #BF3994 #BFA739 #39BF64
split-complementary
#3951BF #BF6439 #94BF39
monochromatic
#1D2961 #2B3D90 #3951BF #6478D1 #93A1DF

Accessibility & contrast

On white

6.77
#3951BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3951BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951BF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951BF#FFFFFF#000000##FFFFFF
##3951BF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3951bf;
/* rgb */ color: rgb(57, 81, 191);
/* oklch */ color: oklch(48.3% 0.174 269.4);
Tailwind
colors: {
  custom: {
    50: '#8081d3',
    500: '#3951bf',
    950: '#000000',
  },
}
SCSS
$custom: #3951bf;
$custom-light: #8081d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3951bf",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 229.254,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48279,
    "c": 0.17433,
    "h": 269.4
  },
  "luminance": 0.10516
}

Semantic roles & 50–950 ramp

primary
#3951BF
secondary
#CABF8A
accent
#C34ADD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3951BF

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

Preview Lab → · Contrast checker → · Palette generator →

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