#3951AD#3951AD

#3951AD is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.149 H 268.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#3951AD
RGBrgb(57, 81, 173)
HSLhsl(228, 50%, 45%)
HSVhsv(228, 67%, 68%)
CMYKcmyk(67.1%, 53.2%, 0%, 32.2%)
CIE-LABlab(37.43, 21.72, -52.04)
CIE-LCHlch(37.43, 56.39, 292.65°)
OKLaboklab(46.87% -0.0027 -0.1495)
OKLCHoklch(46.87% 0.15 268.9)
XYZxyz(12.1700, 9.7707, 40.7716)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AD #AD9539
analogous
#398BAD #3951AD #5B39AD
triadic
#3951AD #AD3951 #51AD39
tetradic
#3951AD #AD398B #AD9539 #39AD5B
square
#3951AD #AD398B #AD9539 #39AD5B
split-complementary
#3951AD #AD5B39 #8BAD39
monochromatic
#1B2651 #2A3B7F #3951AD #5A71C9 #8899D8

Accessibility & contrast

On white

7.11
#3951AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3951AD#FFFFFF#000000##FFFFFF
##3951AD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145EB0
Deuteranopia (green-blind)
#0053AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951ad;
/* rgb */ color: rgb(57, 81, 173);
/* oklch */ color: oklch(46.9% 0.149 268.9);
Tailwind
colors: {
  custom: {
    50: '#7d81c6',
    500: '#3951ad',
    950: '#000000',
  },
}
SCSS
$custom: #3951ad;
$custom-light: #7d81c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3951ad",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 227.586,
    "s": 50.435,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46867,
    "c": 0.1495,
    "h": 268.9
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3951AD

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

Preview Lab → · Contrast checker → · Palette generator →

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