#3954BA#3954BA

#3954BA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.5% C 0.164 H 268.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3954BA
RGBrgb(57, 84, 186)
HSLhsl(227, 53%, 48%)
HSVhsv(227, 69%, 73%)
CMYKcmyk(69.4%, 54.8%, 0%, 27.1%)
CIE-LABlab(39.16, 24.50, -56.89)
CIE-LCHlch(39.16, 61.94, 293.30°)
OKLaboklab(48.47% -0.0045 -0.1637)
OKLCHoklch(48.47% 0.164 268.4)
XYZxyz(13.7175, 10.7543, 47.7977)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954BA #BA9F39
analogous
#3994BA #3954BA #5F39BA
triadic
#3954BA #BA3954 #54BA39
tetradic
#3954BA #BA3994 #BA9F39 #39BA5F
square
#3954BA #BA3994 #BA9F39 #39BA5F
split-complementary
#3954BA #BA5F39 #94BA39
monochromatic
#1C2A5C #2B3F8B #3954BA #6178CF #90A0DD

Accessibility & contrast

On white

6.66
#3954BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3954BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954BA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954BA#FFFFFF#000000##FFFFFF
##3954BA1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#006D7F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3954ba;
/* rgb */ color: rgb(57, 84, 186);
/* oklch */ color: oklch(48.5% 0.164 268.4);
Tailwind
colors: {
  custom: {
    50: '#7f83cf',
    500: '#3954ba',
    950: '#000000',
  },
}
SCSS
$custom: #3954ba;
$custom-light: #7f83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3954ba",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 186
  },
  "hsl": {
    "h": 227.442,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48471,
    "c": 0.16376,
    "h": 268.4
  },
  "luminance": 0.10756
}

Semantic roles & 50–950 ramp

primary
#3954BA
secondary
#C8BA87
accent
#BE4BDC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3954BA

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

Preview Lab → · Contrast checker → · Palette generator →

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