#3951AC#3951AC

#3951AC is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.148 H 268.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#3951AC
RGBrgb(57, 81, 172)
HSLhsl(227, 50%, 45%)
HSVhsv(227, 67%, 67%)
CMYKcmyk(66.9%, 52.9%, 0%, 32.5%)
CIE-LABlab(37.36, 21.36, -51.56)
CIE-LCHlch(37.36, 55.81, 292.50°)
OKLaboklab(46.79% -0.0028 -0.1481)
OKLCHoklch(46.79% 0.148 268.9)
XYZxyz(12.0736, 9.7321, 40.2639)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AC #AC9439
analogous
#398BAC #3951AC #5A39AC
triadic
#3951AC #AC3951 #51AC39
tetradic
#3951AC #AC398B #AC9439 #39AC5A
square
#3951AC #AC398B #AC9439 #39AC5A
split-complementary
#3951AC #AC5A39 #8BAC39
monochromatic
#1B2650 #2A3B7E #3951AC #5A71C8 #8898D8

Accessibility & contrast

On white

7.13
#3951AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3951AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3951AC#FFFFFF#000000##FFFFFF
##3951AC1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175DAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951ac;
/* rgb */ color: rgb(57, 81, 172);
/* oklch */ color: oklch(46.8% 0.148 268.9);
Tailwind
colors: {
  custom: {
    50: '#7c81c5',
    500: '#3951ac',
    950: '#000000',
  },
}
SCSS
$custom: #3951ac;
$custom-light: #7c81c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3951ac",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 227.478,
    "s": 50.218,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46791,
    "c": 0.14809,
    "h": 268.9
  },
  "luminance": 0.09733
}

Semantic roles & 50–950 ramp

primary
#3951AC
secondary
#C2B47F
accent
#BD4EDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951AC

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

Preview Lab → · Contrast checker → · Palette generator →

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