#3951B2#3951B2

#3951B2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.157 H 269.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#3951B2
RGBrgb(57, 81, 178)
HSLhsl(228, 51%, 46%)
HSVhsv(228, 68%, 70%)
CMYKcmyk(68%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.78, 23.54, -54.42)
CIE-LCHlch(37.78, 59.29, 293.39°)
OKLaboklab(47.25% -0.0024 -0.1565)
OKLCHoklch(47.25% 0.157 269.1)
XYZxyz(12.6629, 9.9679, 43.3675)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951B2 #B29A39
analogous
#398DB2 #3951B2 #5D39B2
triadic
#3951B2 #B23951 #51B239
tetradic
#3951B2 #B2398D #B29A39 #39B25D
square
#3951B2 #B2398D #B29A39 #39B25D
split-complementary
#3951B2 #B25D39 #8DB239
monochromatic
#1B2755 #2A3C84 #3951B2 #5D73CB #8B9BDA

Accessibility & contrast

On white

7.01
#3951B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3951B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3951B2#FFFFFF#000000##FFFFFF
##3951B21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#055FB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3951b2;
/* rgb */ color: rgb(57, 81, 178);
/* oklch */ color: oklch(47.2% 0.157 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e81ca',
    500: '#3951b2',
    950: '#000000',
  },
}
SCSS
$custom: #3951b2;
$custom-light: #7e81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3951b2",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 228.099,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47249,
    "c": 0.1565,
    "h": 269.1
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#3951B2
secondary
#C4B782
accent
#BF4DDB
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3951B2

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

Preview Lab → · Contrast checker → · Palette generator →

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