#3951AB#3951AB

#3951AB is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.147 H 268.9°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#3951AB
RGBrgb(57, 81, 171)
HSLhsl(227, 50%, 45%)
HSVhsv(227, 67%, 67%)
CMYKcmyk(66.7%, 52.6%, 0%, 32.9%)
CIE-LABlab(37.29, 20.99, -51.08)
CIE-LCHlch(37.29, 55.22, 292.34°)
OKLaboklab(46.72% -0.0029 -0.1466)
OKLCHoklch(46.72% 0.147 268.9)
XYZxyz(11.9779, 9.6939, 39.7601)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AB #AB9339
analogous
#398AAB #3951AB #5A39AB
triadic
#3951AB #AB3951 #51AB39
tetradic
#3951AB #AB398A #AB9339 #39AB5A
square
#3951AB #AB398A #AB9339 #39AB5A
split-complementary
#3951AB #AB5A39 #8AAB39
monochromatic
#1A264F #2A3B7D #3951AB #5971C8 #8798D7

Accessibility & contrast

On white

7.15
#3951AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3951AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3951AB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951AB#FFFFFF#000000##FFFFFF
##3951AB1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185DAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951ab;
/* rgb */ color: rgb(57, 81, 171);
/* oklch */ color: oklch(46.7% 0.147 268.9);
Tailwind
colors: {
  custom: {
    50: '#7c81c5',
    500: '#3951ab',
    950: '#000000',
  },
}
SCSS
$custom: #3951ab;
$custom-light: #7c81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3951ab",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 227.368,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.14667,
    "h": 268.9
  },
  "luminance": 0.09695
}

Semantic roles & 50–950 ramp

primary
#3951AB
secondary
#C1B37F
accent
#BC4EDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951AB

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

Preview Lab → · Contrast checker → · Palette generator →

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