#3851BF#3851BF

#3851BF is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.2% C 0.175 H 269.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3851BF
RGBrgb(56, 81, 191)
HSLhsl(229, 55%, 48%)
HSVhsv(229, 71%, 75%)
CMYKcmyk(70.7%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.70, 28.12, -60.57)
CIE-LCHlch(38.70, 66.78, 294.90°)
OKLaboklab(48.23% -0.0028 -0.1746)
OKLCHoklch(48.23% 0.175 269.1)
XYZxyz(13.9741, 10.4858, 50.5676)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851BF #BFA638
analogous
#3894BF #3851BF #6238BF
triadic
#3851BF #BF3851 #51BF38
tetradic
#3851BF #BF3894 #BFA638 #38BF62
square
#3851BF #BF3894 #BFA638 #38BF62
split-complementary
#3851BF #BF6238 #94BF38
monochromatic
#1C2960 #2A3D90 #3851BF #6377D1 #92A1DF

Accessibility & contrast

On white

6.78
#3851BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3851BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851BF
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851BF#FFFFFF#000000##FFFFFF
##3851BF1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3851bf;
/* rgb */ color: rgb(56, 81, 191);
/* oklch */ color: oklch(48.2% 0.175 269.1);
Tailwind
colors: {
  custom: {
    50: '#8081d3',
    500: '#3851bf',
    950: '#000000',
  },
}
SCSS
$custom: #3851bf;
$custom-light: #8081d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3851bf",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 228.889,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48227,
    "c": 0.17461,
    "h": 269.1
  },
  "luminance": 0.10487
}

Semantic roles & 50–950 ramp

primary
#3851BF
secondary
#CABE89
accent
#C34ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3851BF

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

Preview Lab → · Contrast checker → · Palette generator →

#3851BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva