#3954B5#3954B5

#3954B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.1% C 0.157 H 268.2°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#3954B5
RGBrgb(57, 84, 181)
HSLhsl(227, 52%, 47%)
HSVhsv(227, 69%, 71%)
CMYKcmyk(68.5%, 53.6%, 0%, 29%)
CIE-LABlab(38.80, 22.67, -54.54)
CIE-LCHlch(38.80, 59.06, 292.58°)
OKLaboklab(48.09% -0.0048 -0.1568)
OKLCHoklch(48.09% 0.157 268.2)
XYZxyz(13.1953, 10.5454, 45.0472)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954B5 #B59A39
analogous
#3992B5 #3954B5 #5C39B5
triadic
#3954B5 #B53954 #54B539
tetradic
#3954B5 #B53992 #B59A39 #39B55C
square
#3954B5 #B53992 #B59A39 #39B55C
split-complementary
#3954B5 #B55C39 #92B539
monochromatic
#1C2958 #2A3E86 #3954B5 #5F77CD #8D9EDB

Accessibility & contrast

On white

6.75
#3954B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3954B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954B5
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954B5#FFFFFF#000000##FFFFFF
##3954B51.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F61B8
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3954b5;
/* rgb */ color: rgb(57, 84, 181);
/* oklch */ color: oklch(48.1% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#7e83cc',
    500: '#3954b5',
    950: '#000000',
  },
}
SCSS
$custom: #3954b5;
$custom-light: #7e83cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3954b5",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 181
  },
  "hsl": {
    "h": 226.935,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48086,
    "c": 0.15685,
    "h": 268.2
  },
  "luminance": 0.10547
}

Semantic roles & 50–950 ramp

primary
#3954B5
secondary
#C6B784
accent
#BC4CDC
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954B5

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

Preview Lab → · Contrast checker → · Palette generator →

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