#3951B4#3951B4

#3951B4 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.159 H 269.2°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#3951B4
RGBrgb(57, 81, 180)
HSLhsl(228, 52%, 46%)
HSVhsv(228, 68%, 71%)
CMYKcmyk(68.3%, 55%, 0%, 29.4%)
CIE-LABlab(37.93, 24.27, -55.36)
CIE-LCHlch(37.93, 60.45, 293.67°)
OKLaboklab(47.4% -0.0023 -0.1593)
OKLCHoklch(47.4% 0.159 269.2)
XYZxyz(12.8652, 10.0488, 44.4328)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951B4 #B49C39
analogous
#398FB4 #3951B4 #5F39B4
triadic
#3951B4 #B43951 #51B439
tetradic
#3951B4 #B4398F #B49C39 #39B45F
square
#3951B4 #B4398F #B49C39 #39B45F
split-complementary
#3951B4 #B45F39 #8FB439
monochromatic
#1C2757 #2A3C86 #3951B4 #5E74CC #8D9CDB

Accessibility & contrast

On white

6.98
#3951B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#3951B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951B4
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951B4#FFFFFF#000000##FFFFFF
##3951B41.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3951b4;
/* rgb */ color: rgb(57, 81, 180);
/* oklch */ color: oklch(47.4% 0.159 269.2);
Tailwind
colors: {
  custom: {
    50: '#7e81cb',
    500: '#3951b4',
    950: '#000000',
  },
}
SCSS
$custom: #3951b4;
$custom-light: #7e81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3951b4",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 228.293,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47404,
    "c": 0.15928,
    "h": 269.2
  },
  "luminance": 0.1005
}

Semantic roles & 50–950 ramp

primary
#3951B4
secondary
#C5B883
accent
#BF4CDB
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951B4

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

Preview Lab → · Contrast checker → · Palette generator →

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