#3954AE#3954AE

#3954AE is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.147 H 267.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#3954AE
RGBrgb(57, 84, 174)
HSLhsl(226, 51%, 45%)
HSVhsv(226, 67%, 68%)
CMYKcmyk(67.2%, 51.7%, 0%, 31.8%)
CIE-LABlab(38.31, 20.12, -51.20)
CIE-LCHlch(38.31, 55.01, 291.46°)
OKLaboklab(47.56% -0.0054 -0.1469)
OKLCHoklch(47.56% 0.147 267.9)
XYZxyz(12.4950, 10.2653, 41.3591)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954AE #AE9339
analogous
#398EAE #3954AE #5939AE
triadic
#3954AE #AE3954 #54AE39
tetradic
#3954AE #AE398E #AE9339 #39AE59
square
#3954AE #AE398E #AE9339 #39AE59
split-complementary
#3954AE #AE5939 #8EAE39
monochromatic
#1B2752 #2A3E80 #3954AE #5B74C9 #899BD8

Accessibility & contrast

On white

6.88
#3954AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3954AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954AE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954AE#FFFFFF#000000##FFFFFF
##3954AE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E60B1
Deuteranopia (green-blind)
#0055AC
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3954ae;
/* rgb */ color: rgb(57, 84, 174);
/* oklch */ color: oklch(47.6% 0.147 267.9);
Tailwind
colors: {
  custom: {
    50: '#7d83c7',
    500: '#3954ae',
    950: '#000000',
  },
}
SCSS
$custom: #3954ae;
$custom-light: #7d83c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3954ae",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 174
  },
  "hsl": {
    "h": 226.154,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.14705,
    "h": 267.9
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#3954AE
secondary
#C3B380
accent
#BA4EDA
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954AE

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

Preview Lab → · Contrast checker → · Palette generator →

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