#3851BA#3851BA

#3851BA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.168 H 269.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#3851BA
RGBrgb(56, 81, 186)
HSLhsl(228, 54%, 47%)
HSVhsv(228, 70%, 73%)
CMYKcmyk(69.9%, 56.5%, 0%, 27.1%)
CIE-LABlab(38.32, 26.30, -58.26)
CIE-LCHlch(38.32, 63.92, 294.30°)
OKLaboklab(47.83% -0.0029 -0.1678)
OKLCHoklch(47.83% 0.168 269)
XYZxyz(13.4332, 10.2695, 47.7191)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851BA #BAA138
analogous
#3892BA #3851BA #6038BA
triadic
#3851BA #BA3851 #51BA38
tetradic
#3851BA #BA3892 #BAA138 #38BA60
square
#3851BA #BA3892 #BAA138 #38BA60
split-complementary
#3851BA #BA6038 #92BA38
monochromatic
#1C285C #2A3D8B #3851BA #6075CF #8F9EDD

Accessibility & contrast

On white

6.88
#3851BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3851BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851BA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851BA#FFFFFF#000000##FFFFFF
##3851BA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3851ba;
/* rgb */ color: rgb(56, 81, 186);
/* oklch */ color: oklch(47.8% 0.168 269.0);
Tailwind
colors: {
  custom: {
    50: '#7f81cf',
    500: '#3851ba',
    950: '#000000',
  },
}
SCSS
$custom: #3851ba;
$custom-light: #7f81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3851ba",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 228.462,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47825,
    "c": 0.16782,
    "h": 269
  },
  "luminance": 0.10271
}

Semantic roles & 50–950 ramp

primary
#3851BA
secondary
#C8BB86
accent
#C14BDD
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3851BA

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

Preview Lab → · Contrast checker → · Palette generator →

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