#3851BC#3851BC

#3851BC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.171 H 269.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#3851BC
RGBrgb(56, 81, 188)
HSLhsl(229, 54%, 48%)
HSVhsv(229, 70%, 74%)
CMYKcmyk(70.2%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.47, 27.03, -59.19)
CIE-LCHlch(38.47, 65.07, 294.54°)
OKLaboklab(47.99% -0.0028 -0.1705)
OKLCHoklch(47.99% 0.171 269)
XYZxyz(13.6473, 10.3551, 48.8467)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851BC #BCA338
analogous
#3893BC #3851BC #6138BC
triadic
#3851BC #BC3851 #51BC38
tetradic
#3851BC #BC3893 #BCA338 #38BC61
square
#3851BC #BC3893 #BCA338 #38BC61
split-complementary
#3851BC #BC6138 #93BC38
monochromatic
#1C285E #2A3D8D #3851BC #6176D0 #909FDE

Accessibility & contrast

On white

6.84
#3851BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3851BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851BC
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851BC#FFFFFF#000000##FFFFFF
##3851BC1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3851bc;
/* rgb */ color: rgb(56, 81, 188);
/* oklch */ color: oklch(48.0% 0.171 269.0);
Tailwind
colors: {
  custom: {
    50: '#7f81d1',
    500: '#3851bc',
    950: '#000000',
  },
}
SCSS
$custom: #3851bc;
$custom-light: #7f81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3851bc",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 228.636,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47985,
    "c": 0.17054,
    "h": 269
  },
  "luminance": 0.10356
}

Semantic roles & 50–950 ramp

primary
#3851BC
secondary
#C9BC87
accent
#C24ADD
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3851BC

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

Preview Lab → · Contrast checker → · Palette generator →

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