#3951BA#3951BA

#3951BA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.168 H 269.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#3951BA
RGBrgb(57, 81, 186)
HSLhsl(229, 53%, 48%)
HSVhsv(229, 69%, 73%)
CMYKcmyk(69.4%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.37, 26.44, -58.17)
CIE-LCHlch(38.37, 63.90, 294.44°)
OKLaboklab(47.88% -0.002 -0.1675)
OKLCHoklch(47.88% 0.168 269.3)
XYZxyz(13.4897, 10.2986, 47.7218)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951BA #BAA239
analogous
#3992BA #3951BA #6139BA
triadic
#3951BA #BA3951 #51BA39
tetradic
#3951BA #BA3992 #BAA239 #39BA61
square
#3951BA #BA3992 #BAA239 #39BA61
split-complementary
#3951BA #BA6139 #92BA39
monochromatic
#1C285C #2B3D8B #3951BA #6176CF #909FDD

Accessibility & contrast

On white

6.86
#3951BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3951BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951BA
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951BA#FFFFFF#000000##FFFFFF
##3951BA1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3951ba;
/* rgb */ color: rgb(57, 81, 186);
/* oklch */ color: oklch(47.9% 0.168 269.3);
Tailwind
colors: {
  custom: {
    50: '#7f81cf',
    500: '#3951ba',
    950: '#000000',
  },
}
SCSS
$custom: #3951ba;
$custom-light: #7f81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3951ba",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 228.837,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.16753,
    "h": 269.3
  },
  "luminance": 0.103
}

Semantic roles & 50–950 ramp

primary
#3951BA
secondary
#C8BC87
accent
#C14BDC
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3951BA

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

Preview Lab → · Contrast checker → · Palette generator →

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