#3851BD#3851BD

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

Color values

HEX#3851BD
RGBrgb(56, 81, 189)
HSLhsl(229, 54%, 48%)
HSVhsv(229, 70%, 74%)
CMYKcmyk(70.4%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.55, 27.39, -59.65)
CIE-LCHlch(38.55, 65.64, 294.66°)
OKLaboklab(48.07% -0.0028 -0.1719)
OKLCHoklch(48.07% 0.172 269.1)
XYZxyz(13.7555, 10.3984, 49.4164)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851BD #BDA438
analogous
#3893BD #3851BD #6138BD
triadic
#3851BD #BD3851 #51BD38
tetradic
#3851BD #BD3893 #BDA438 #38BD61
square
#3851BD #BD3893 #BDA438 #38BD61
split-complementary
#3851BD #BD6138 #93BD38
monochromatic
#1C295F #2A3D8E #3851BD #6277D0 #91A0DE

Accessibility & contrast

On white

6.82
#3851BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3851BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851BD
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851BD#FFFFFF#000000##FFFFFF
##3851BD1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3851bd;
/* rgb */ color: rgb(56, 81, 189);
/* oklch */ color: oklch(48.1% 0.172 269.1);
Tailwind
colors: {
  custom: {
    50: '#7f81d2',
    500: '#3851bd',
    950: '#000000',
  },
}
SCSS
$custom: #3851bd;
$custom-light: #7f81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3851bd",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 228.722,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48065,
    "c": 0.1719,
    "h": 269.1
  },
  "luminance": 0.104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3851BD

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

Preview Lab → · Contrast checker → · Palette generator →

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