#3951AE#3951AE

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

Color values

HEX#3951AE
RGBrgb(57, 81, 174)
HSLhsl(228, 51%, 45%)
HSVhsv(228, 67%, 68%)
CMYKcmyk(67.2%, 53.4%, 0%, 31.8%)
CIE-LABlab(37.50, 22.08, -52.52)
CIE-LCHlch(37.50, 56.97, 292.81°)
OKLaboklab(46.94% -0.0027 -0.1509)
OKLCHoklch(46.94% 0.151 269)
XYZxyz(12.2671, 9.8096, 41.2831)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951AE #AE9639
analogous
#398CAE #3951AE #5B39AE
triadic
#3951AE #AE3951 #51AE39
tetradic
#3951AE #AE398C #AE9639 #39AE5B
square
#3951AE #AE398C #AE9639 #39AE5B
split-complementary
#3951AE #AE5B39 #8CAE39
monochromatic
#1B2652 #2A3C80 #3951AE #5B72C9 #8999D8

Accessibility & contrast

On white

7.09
#3951AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3951AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3951AE#FFFFFF#000000##FFFFFF
##3951AE1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3951ae;
/* rgb */ color: rgb(57, 81, 174);
/* oklch */ color: oklch(46.9% 0.151 269.0);
Tailwind
colors: {
  custom: {
    50: '#7d81c7',
    500: '#3951ae',
    950: '#000000',
  },
}
SCSS
$custom: #3951ae;
$custom-light: #7d81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3951ae",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 227.692,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.1509,
    "h": 269
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3951AE

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

Preview Lab → · Contrast checker → · Palette generator →

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