#3851C5#3851C5

#3851C5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.7% C 0.183 H 269.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#3851C5
RGBrgb(56, 81, 197)
HSLhsl(229, 56%, 50%)
HSVhsv(229, 72%, 77%)
CMYKcmyk(71.6%, 58.9%, 0%, 22.7%)
CIE-LABlab(39.17, 30.29, -63.31)
CIE-LCHlch(39.17, 70.18, 295.57°)
OKLaboklab(48.72% -0.0026 -0.1826)
OKLCHoklch(48.72% 0.183 269.2)
XYZxyz(14.6479, 10.7553, 54.1165)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851C5 #C5AC38
analogous
#3897C5 #3851C5 #6638C5
triadic
#3851C5 #C53851 #51C538
tetradic
#3851C5 #C53897 #C5AC38 #38C566
square
#3851C5 #C53897 #C5AC38 #38C566
split-complementary
#3851C5 #C56638 #97C538
monochromatic
#1D2A66 #2A3D95 #3851C5 #677AD4 #96A3E1

Accessibility & contrast

On white

6.66
#3851C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3851C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851C5
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851C5#FFFFFF#000000##FFFFFF
##3851C51.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#0056C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3851c5;
/* rgb */ color: rgb(56, 81, 197);
/* oklch */ color: oklch(48.7% 0.183 269.2);
Tailwind
colors: {
  custom: {
    50: '#8181d7',
    500: '#3851c5',
    950: '#000000',
  },
}
SCSS
$custom: #3851c5;
$custom-light: #8181d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3851c5",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 197
  },
  "hsl": {
    "h": 229.362,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.18266,
    "h": 269.2
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

primary
#3851C5
secondary
#CDC18C
accent
#C449DF
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3851C5

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

Preview Lab → · Contrast checker → · Palette generator →

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