#3951B7#3951B7

#3951B7 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.163 H 269.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#3951B7
RGBrgb(57, 81, 183)
HSLhsl(229, 53%, 47%)
HSVhsv(229, 69%, 72%)
CMYKcmyk(68.9%, 55.7%, 0%, 28.2%)
CIE-LABlab(38.15, 25.36, -56.77)
CIE-LCHlch(38.15, 62.18, 294.07°)
OKLaboklab(47.64% -0.0021 -0.1634)
OKLCHoklch(47.64% 0.163 269.3)
XYZxyz(13.1741, 10.1723, 46.0597)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3951B7 #B79F39
analogous
#3990B7 #3951B7 #6039B7
triadic
#3951B7 #B73951 #51B739
tetradic
#3951B7 #B73990 #B79F39 #39B760
square
#3951B7 #B73990 #B79F39 #39B760
split-complementary
#3951B7 #B76039 #90B739
monochromatic
#1C285A #2A3C88 #3951B7 #6075CD #8E9DDC

Accessibility & contrast

On white

6.92
#3951B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3951B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3951B7
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3951B7#FFFFFF#000000##FFFFFF
##3951B71.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3951b7;
/* rgb */ color: rgb(57, 81, 183);
/* oklch */ color: oklch(47.6% 0.163 269.3);
Tailwind
colors: {
  custom: {
    50: '#7f81cd',
    500: '#3951b7',
    950: '#000000',
  },
}
SCSS
$custom: #3951b7;
$custom-light: #7f81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3951b7",
  "rgb": {
    "r": 57,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 228.571,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.16341,
    "h": 269.3
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#3951B7
secondary
#C7BA85
accent
#C04CDC
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3951B7

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

Preview Lab → · Contrast checker → · Palette generator →

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