#3954C6#3954C6

#3954C6 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.4% C 0.180 H 268.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#3954C6
RGBrgb(57, 84, 198)
HSLhsl(229, 55%, 50%)
HSVhsv(229, 71%, 78%)
CMYKcmyk(71.2%, 57.6%, 0%, 22.4%)
CIE-LABlab(40.06, 28.85, -62.44)
CIE-LCHlch(40.06, 68.78, 294.80°)
OKLaboklab(49.42% -0.004 -0.18)
OKLCHoklch(49.42% 0.18 268.7)
XYZxyz(15.0472, 11.2862, 54.8006)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954C6 #C6AB39
analogous
#399AC6 #3954C6 #6539C6
triadic
#3954C6 #C63954 #54C639
tetradic
#3954C6 #C6399A #C6AB39 #39C665
square
#3954C6 #C6399A #C6AB39 #39C665
split-complementary
#3954C6 #C66539 #9AC639
monochromatic
#1E2C67 #2B4096 #3954C6 #697DD4 #98A6E1

Accessibility & contrast

On white

6.45
#3954C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3954C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954C6
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954C6#FFFFFF#000000##FFFFFF
##3954C61.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CA
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#007085
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3954c6;
/* rgb */ color: rgb(57, 84, 198);
/* oklch */ color: oklch(49.4% 0.180 268.7);
Tailwind
colors: {
  custom: {
    50: '#8283d8',
    500: '#3954c6',
    950: '#000000',
  },
}
SCSS
$custom: #3954c6;
$custom-light: #8283d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3954c6",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 198
  },
  "hsl": {
    "h": 228.511,
    "s": 55.294,
    "l": 50
  },
  "oklch": {
    "l": 0.49423,
    "c": 0.18005,
    "h": 268.7
  },
  "luminance": 0.11288
}

Semantic roles & 50–950 ramp

primary
#3954C6
secondary
#CDC18E
accent
#C249DF
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3954C6

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

Preview Lab → · Contrast checker → · Palette generator →

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