#3951D2#3951D2

#3951D2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.9% C 0.199 H 269.5°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#3951D2
RGBrgb(57, 81, 210)
HSLhsl(231, 63%, 52%)
HSVhsv(231, 73%, 82%)
CMYKcmyk(72.9%, 61.4%, 0%, 17.6%)
CIE-LABlab(40.26, 35.07, -69.05)
CIE-LCHlch(40.26, 77.44, 296.93°)
OKLaboklab(49.87% -0.0017 -0.1995)
OKLCHoklch(49.87% 0.199 269.5)
XYZxyz(16.2586, 11.4062, 62.3050)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951D2 #D2BA39
analogous
#399ED2 #3951D2 #6D39D2
triadic
#3951D2 #D23951 #51D239
tetradic
#3951D2 #D2399E #D2BA39 #39D26D
square
#3951D2 #D2399E #D2BA39 #39D26D
split-complementary
#3951D2 #D26D39 #9ED239
monochromatic
#1B2976 #263AA8 #3951D2 #6B7DDD #9DA9E9

Accessibility & contrast

On white

6.40
#3951D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#3951D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3951D2#FFFFFF#000000##FFFFFF
##3951D21.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0058D0
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3951d2;
/* rgb */ color: rgb(57, 81, 210);
/* oklch */ color: oklch(49.9% 0.199 269.5);
Tailwind
colors: {
  custom: {
    50: '#8481e1',
    500: '#3951d2',
    950: '#000000',
  },
}
SCSS
$custom: #3951d2;
$custom-light: #8481e1;
$custom-dark: #000000;
JSON
{
  "hex": "#3951d2",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 230.588,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49867,
    "c": 0.19947,
    "h": 269.5
  },
  "luminance": 0.11408
}

Semantic roles & 50–950 ramp

primary
#3951D2
secondary
#D5CA92
accent
#CC42E6
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #3951D2

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

Preview Lab → · Contrast checker → · Palette generator →

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