#3851BE#3851BE

#3851BE is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.173 H 269.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#3851BE
RGBrgb(56, 81, 190)
HSLhsl(229, 54%, 48%)
HSVhsv(229, 71%, 75%)
CMYKcmyk(70.5%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.62, 27.75, -60.11)
CIE-LCHlch(38.62, 66.21, 294.78°)
OKLaboklab(48.15% -0.0028 -0.1732)
OKLCHoklch(48.15% 0.173 269.1)
XYZxyz(13.8644, 10.4419, 49.9900)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851BE #BEA538
analogous
#3894BE #3851BE #6238BE
triadic
#3851BE #BE3851 #51BE38
tetradic
#3851BE #BE3894 #BEA538 #38BE62
square
#3851BE #BE3894 #BEA538 #38BE62
split-complementary
#3851BE #BE6238 #94BE38
monochromatic
#1C295F #2A3D8F #3851BE #6277D1 #92A0DF

Accessibility & contrast

On white

6.80
#3851BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3851BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851BE
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851BE#FFFFFF#000000##FFFFFF
##3851BE1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0055BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3851be;
/* rgb */ color: rgb(56, 81, 190);
/* oklch */ color: oklch(48.1% 0.173 269.1);
Tailwind
colors: {
  custom: {
    50: '#8081d2',
    500: '#3851be',
    950: '#000000',
  },
}
SCSS
$custom: #3851be;
$custom-light: #8081d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3851be",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 228.806,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48146,
    "c": 0.17325,
    "h": 269.1
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#3851BE
secondary
#CABD88
accent
#C24ADE
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3851BE

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

Preview Lab → · Contrast checker → · Palette generator →

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