#3851C4#3851C4

#3851C4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.181 H 269.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3851C4
RGBrgb(56, 81, 196)
HSLhsl(229, 56%, 49%)
HSVhsv(229, 71%, 77%)
CMYKcmyk(71.4%, 58.7%, 0%, 23.1%)
CIE-LABlab(39.09, 29.93, -62.86)
CIE-LCHlch(39.09, 69.62, 295.46°)
OKLaboklab(48.64% -0.0026 -0.1813)
OKLCHoklch(48.64% 0.181 269.2)
XYZxyz(14.5337, 10.7096, 53.5151)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851C4 #C4AB38
analogous
#3897C4 #3851C4 #6538C4
triadic
#3851C4 #C43851 #51C438
tetradic
#3851C4 #C43897 #C4AB38 #38C465
square
#3851C4 #C43897 #C4AB38 #38C465
split-complementary
#3851C4 #C46538 #97C438
monochromatic
#1D2A65 #2A3D94 #3851C4 #6679D3 #96A3E1

Accessibility & contrast

On white

6.68
#3851C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3851C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851C4
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851C4#FFFFFF#000000##FFFFFF
##3851C41.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3851c4;
/* rgb */ color: rgb(56, 81, 196);
/* oklch */ color: oklch(48.6% 0.181 269.2);
Tailwind
colors: {
  custom: {
    50: '#8181d7',
    500: '#3851c4',
    950: '#000000',
  },
}
SCSS
$custom: #3851c4;
$custom-light: #8181d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3851c4",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 196
  },
  "hsl": {
    "h": 229.286,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48637,
    "c": 0.18132,
    "h": 269.2
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#3851C4
secondary
#CCC18C
accent
#C449DF
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #3851C4

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

Preview Lab → · Contrast checker → · Palette generator →

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