#3954AC#3954AC

#3954AC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.144 H 267.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#3954AC
RGBrgb(57, 84, 172)
HSLhsl(226, 50%, 45%)
HSVhsv(226, 67%, 67%)
CMYKcmyk(66.9%, 51.2%, 0%, 32.5%)
CIE-LABlab(38.18, 19.39, -50.23)
CIE-LCHlch(38.18, 53.85, 291.11°)
OKLaboklab(47.41% -0.0056 -0.1441)
OKLCHoklch(47.41% 0.144 267.8)
XYZxyz(12.3015, 10.1879, 40.3399)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954AC #AC9139
analogous
#398EAC #3954AC #5839AC
triadic
#3954AC #AC3954 #54AC39
tetradic
#3954AC #AC398E #AC9139 #39AC58
square
#3954AC #AC398E #AC9139 #39AC58
split-complementary
#3954AC #AC5839 #8EAC39
monochromatic
#1B2750 #2A3E7E #3954AC #5A74C8 #889BD8

Accessibility & contrast

On white

6.91
#3954AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3954AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3954AC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3954AC#FFFFFF#000000##FFFFFF
##3954AC1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215FAF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3954ac;
/* rgb */ color: rgb(57, 84, 172);
/* oklch */ color: oklch(47.4% 0.144 267.8);
Tailwind
colors: {
  custom: {
    50: '#7c83c5',
    500: '#3954ac',
    950: '#000000',
  },
}
SCSS
$custom: #3954ac;
$custom-light: #7c83c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3954ac",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 225.913,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47412,
    "c": 0.14423,
    "h": 267.8
  },
  "luminance": 0.10189
}

Semantic roles & 50–950 ramp

primary
#3954AC
secondary
#C2B27F
accent
#B94EDA
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3954AC

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

Preview Lab → · Contrast checker → · Palette generator →

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