#3951AA#3951AA

#3951AA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.145 H 268.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#3951AA
RGBrgb(57, 81, 170)
HSLhsl(227, 50%, 45%)
HSVhsv(227, 66%, 67%)
CMYKcmyk(66.5%, 52.4%, 0%, 33.3%)
CIE-LABlab(37.22, 20.63, -50.60)
CIE-LCHlch(37.22, 54.64, 292.18°)
OKLaboklab(46.64% -0.003 -0.1452)
OKLCHoklch(46.64% 0.145 268.8)
XYZxyz(11.8830, 9.6559, 39.2600)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AA #AA9239
analogous
#398AAA #3951AA #5A39AA
triadic
#3951AA #AA3951 #51AA39
tetradic
#3951AA #AA398A #AA9239 #39AA5A
square
#3951AA #AA398A #AA9239 #39AA5A
split-complementary
#3951AA #AA5A39 #8AAA39
monochromatic
#1A254E #2A3B7C #3951AA #5970C7 #8798D7

Accessibility & contrast

On white

7.16
#3951AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3951AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3951AA
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951AA#FFFFFF#000000##FFFFFF
##3951AA1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5DAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951aa;
/* rgb */ color: rgb(57, 81, 170);
/* oklch */ color: oklch(46.6% 0.145 268.8);
Tailwind
colors: {
  custom: {
    50: '#7c81c4',
    500: '#3951aa',
    950: '#000000',
  },
}
SCSS
$custom: #3951aa;
$custom-light: #7c81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3951aa",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 227.257,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46641,
    "c": 0.14526,
    "h": 268.8
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#3951AA
secondary
#C1B37E
accent
#BC4ED9
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951AA

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

Preview Lab → · Contrast checker → · Palette generator →

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