#3954C5#3954C5

#3954C5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.3% C 0.179 H 268.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#3954C5
RGBrgb(57, 84, 197)
HSLhsl(228, 55%, 50%)
HSVhsv(228, 71%, 77%)
CMYKcmyk(71.1%, 57.4%, 0%, 22.7%)
CIE-LABlab(39.98, 28.49, -61.98)
CIE-LCHlch(39.98, 68.21, 294.69°)
OKLaboklab(49.34% -0.004 -0.1787)
OKLCHoklch(49.34% 0.179 268.7)
XYZxyz(14.9322, 11.2402, 54.1951)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954C5 #C5AA39
analogous
#399AC5 #3954C5 #6439C5
triadic
#3954C5 #C53954 #54C539
tetradic
#3954C5 #C5399A #C5AA39 #39C564
square
#3954C5 #C5399A #C5AA39 #39C564
split-complementary
#3954C5 #C56439 #9AC539
monochromatic
#1E2C66 #2B4096 #3954C5 #687DD3 #97A6E1

Accessibility & contrast

On white

6.46
#3954C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#3954C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954C5
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954C5#FFFFFF#000000##FFFFFF
##3954C51.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C9
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3954c5;
/* rgb */ color: rgb(57, 84, 197);
/* oklch */ color: oklch(49.3% 0.179 268.7);
Tailwind
colors: {
  custom: {
    50: '#8183d7',
    500: '#3954c5',
    950: '#000000',
  },
}
SCSS
$custom: #3954c5;
$custom-light: #8183d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3954c5",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 197
  },
  "hsl": {
    "h": 228.429,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49343,
    "c": 0.17871,
    "h": 268.7
  },
  "luminance": 0.11242
}

Semantic roles & 50–950 ramp

primary
#3954C5
secondary
#CDC08D
accent
#C249DE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3954C5

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

Preview Lab → · Contrast checker → · Palette generator →

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