#3954BF#3954BF

#3954BF is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.9% C 0.171 H 268.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#3954BF
RGBrgb(57, 84, 191)
HSLhsl(228, 54%, 49%)
HSVhsv(228, 70%, 75%)
CMYKcmyk(70.2%, 56%, 0%, 25.1%)
CIE-LABlab(39.53, 26.31, -59.22)
CIE-LCHlch(39.53, 64.80, 293.96°)
OKLaboklab(48.86% -0.0042 -0.1705)
OKLCHoklch(48.86% 0.171 268.6)
XYZxyz(14.2584, 10.9707, 50.6462)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954BF #BFA439
analogous
#3997BF #3954BF #6139BF
triadic
#3954BF #BF3954 #54BF39
tetradic
#3954BF #BF3997 #BFA439 #39BF61
square
#3954BF #BF3997 #BFA439 #39BF61
split-complementary
#3954BF #BF6139 #97BF39
monochromatic
#1D2B61 #2B3F90 #3954BF #647AD1 #93A3DF

Accessibility & contrast

On white

6.57
#3954BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#3954BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954BF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954BF#FFFFFF#000000##FFFFFF
##3954BF1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3954bf;
/* rgb */ color: rgb(57, 84, 191);
/* oklch */ color: oklch(48.9% 0.171 268.6);
Tailwind
colors: {
  custom: {
    50: '#8083d3',
    500: '#3954bf',
    950: '#000000',
  },
}
SCSS
$custom: #3954bf;
$custom-light: #8083d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3954bf",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 227.91,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48863,
    "c": 0.1706,
    "h": 268.6
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

primary
#3954BF
secondary
#CABD8A
accent
#C04ADD
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3954BF

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

Preview Lab → · Contrast checker → · Palette generator →

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