#3954C4#3954C4

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

Color values

HEX#3954C4
RGBrgb(57, 84, 196)
HSLhsl(228, 55%, 50%)
HSVhsv(228, 71%, 77%)
CMYKcmyk(70.9%, 57.1%, 0%, 23.1%)
CIE-LABlab(39.91, 28.13, -61.52)
CIE-LCHlch(39.91, 67.65, 294.57°)
OKLaboklab(49.26% -0.004 -0.1773)
OKLCHoklch(49.26% 0.177 268.7)
XYZxyz(14.8180, 11.1945, 53.5937)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954C4 #C4A939
analogous
#399AC4 #3954C4 #6339C4
triadic
#3954C4 #C43954 #54C439
tetradic
#3954C4 #C4399A #C4A939 #39C463
square
#3954C4 #C4399A #C4A939 #39C463
split-complementary
#3954C4 #C46339 #9AC439
monochromatic
#1D2B65 #2B4095 #3954C4 #677CD3 #97A5E1

Accessibility & contrast

On white

6.48
#3954C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3954C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954C4
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954C4#FFFFFF#000000##FFFFFF
##3954C41.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3954c4;
/* rgb */ color: rgb(57, 84, 196);
/* oklch */ color: oklch(49.3% 0.177 268.7);
Tailwind
colors: {
  custom: {
    50: '#8183d7',
    500: '#3954c4',
    950: '#000000',
  },
}
SCSS
$custom: #3954c4;
$custom-light: #8183d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3954c4",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 196
  },
  "hsl": {
    "h": 228.345,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49262,
    "c": 0.17737,
    "h": 268.7
  },
  "luminance": 0.11196
}

Semantic roles & 50–950 ramp

primary
#3954C4
secondary
#CCC08D
accent
#C14ADE
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3954C4

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

Preview Lab → · Contrast checker → · Palette generator →

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