#3954AA#3954AA

#3954AA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.3% C 0.141 H 267.6°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#3954AA
RGBrgb(57, 84, 170)
HSLhsl(226, 50%, 45%)
HSVhsv(226, 66%, 67%)
CMYKcmyk(66.5%, 50.6%, 0%, 33.3%)
CIE-LABlab(38.04, 18.66, -49.27)
CIE-LCHlch(38.04, 52.68, 290.75°)
OKLaboklab(47.27% -0.0059 -0.1413)
OKLCHoklch(47.27% 0.141 267.6)
XYZxyz(12.1109, 10.1117, 39.3359)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3954AA #AA8F39
analogous
#398DAA #3954AA #5739AA
triadic
#3954AA #AA3954 #54AA39
tetradic
#3954AA #AA398D #AA8F39 #39AA57
square
#3954AA #AA398D #AA8F39 #39AA57
split-complementary
#3954AA #AA5739 #8DAA39
monochromatic
#1A274E #2A3D7C #3954AA #5973C7 #879AD7

Accessibility & contrast

On white

6.95
#3954AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3954AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3954AA#FFFFFF#000000##FFFFFF
##3954AA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAD
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3954aa;
/* rgb */ color: rgb(57, 84, 170);
/* oklch */ color: oklch(47.3% 0.141 267.6);
Tailwind
colors: {
  custom: {
    50: '#7c83c4',
    500: '#3954aa',
    950: '#000000',
  },
}
SCSS
$custom: #3954aa;
$custom-light: #7c83c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3954aa",
  "rgb": {
    "r": 57,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 225.664,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.14139,
    "h": 267.6
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#3954AA
secondary
#C1B17E
accent
#B84ED9
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3954AA

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

Preview Lab → · Contrast checker → · Palette generator →

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