#3951D1#3951D1

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

Color values

HEX#3951D1
RGBrgb(57, 81, 209)
HSLhsl(231, 62%, 52%)
HSVhsv(231, 73%, 82%)
CMYKcmyk(72.7%, 61.2%, 0%, 18%)
CIE-LABlab(40.17, 34.72, -68.61)
CIE-LCHlch(40.17, 76.89, 296.84°)
OKLaboklab(49.78% -0.0017 -0.1982)
OKLCHoklch(49.78% 0.198 269.5)
XYZxyz(16.1344, 11.3565, 61.6509)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951D1 #D1B939
analogous
#399DD1 #3951D1 #6D39D1
triadic
#3951D1 #D13951 #51D139
tetradic
#3951D1 #D1399D #D1B939 #39D16D
square
#3951D1 #D1399D #D1B939 #39D16D
split-complementary
#3951D1 #D16D39 #9DD139
monochromatic
#1B2975 #273BA6 #3951D1 #6B7DDD #9CA8E8

Accessibility & contrast

On white

6.42
#3951D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3951D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951D1
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951D1#FFFFFF#000000##FFFFFF
##3951D11.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3951d1;
/* rgb */ color: rgb(57, 81, 209);
/* oklch */ color: oklch(49.8% 0.198 269.5);
Tailwind
colors: {
  custom: {
    50: '#8481e0',
    500: '#3951d1',
    950: '#000000',
  },
}
SCSS
$custom: #3951d1;
$custom-light: #8481e0;
$custom-dark: #000000;
JSON
{
  "hex": "#3951d1",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 230.526,
    "s": 62.295,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49781,
    "c": 0.19817,
    "h": 269.5
  },
  "luminance": 0.11358
}

Semantic roles & 50–950 ramp

primary
#3951D1
secondary
#D4CA92
accent
#CC42E5
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3951D1

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

Preview Lab → · Contrast checker → · Palette generator →

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