#3851CC#3851CC

#3851CC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.192 H 269.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#3851CC
RGBrgb(56, 81, 204)
HSLhsl(230, 59%, 51%)
HSVhsv(230, 73%, 80%)
CMYKcmyk(72.5%, 60.3%, 0%, 20%)
CIE-LABlab(39.72, 32.81, -66.46)
CIE-LCHlch(39.72, 74.12, 296.27°)
OKLaboklab(49.31% -0.0026 -0.1919)
OKLCHoklch(49.31% 0.192 269.2)
XYZxyz(15.4687, 11.0836, 58.4392)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851CC #CCB338
analogous
#389BCC #3851CC #6938CC
triadic
#3851CC #CC3851 #51CC38
tetradic
#3851CC #CC389B #CCB338 #38CC69
square
#3851CC #CC389B #CCB338 #38CC69
split-complementary
#3851CC #CC6938 #9BCC38
monochromatic
#1C2A6E #293C9E #3851CC #697CD8 #99A6E5

Accessibility & contrast

On white

6.53
#3851CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3851CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851CC
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851CC#FFFFFF#000000##FFFFFF
##3851CC1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3851cc;
/* rgb */ color: rgb(56, 81, 204);
/* oklch */ color: oklch(49.3% 0.192 269.2);
Tailwind
colors: {
  custom: {
    50: '#8381dc',
    500: '#3851cc',
    950: '#000000',
  },
}
SCSS
$custom: #3851cc;
$custom-light: #8381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3851cc",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 229.865,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49306,
    "c": 0.19191,
    "h": 269.2
  },
  "luminance": 0.11085
}

Semantic roles & 50–950 ramp

primary
#3851CC
secondary
#D1C68F
accent
#C845E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3851CC

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

Preview Lab → · Contrast checker → · Palette generator →

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