#3851CB#3851CB

#3851CB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.2% C 0.191 H 269.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#3851CB
RGBrgb(56, 81, 203)
HSLhsl(230, 59%, 51%)
HSVhsv(230, 72%, 80%)
CMYKcmyk(72.4%, 60.1%, 0%, 20.4%)
CIE-LABlab(39.64, 32.45, -66.02)
CIE-LCHlch(39.64, 73.56, 296.18°)
OKLaboklab(49.22% -0.0026 -0.1906)
OKLCHoklch(49.22% 0.191 269.2)
XYZxyz(15.3491, 11.0358, 57.8095)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851CB #CBB238
analogous
#389ACB #3851CB #6838CB
triadic
#3851CB #CB3851 #51CB38
tetradic
#3851CB #CB389A #CBB238 #38CB68
square
#3851CB #CB389A #CBB238 #38CB68
split-complementary
#3851CB #CB6838 #9ACB38
monochromatic
#1C2A6C #293D9D #3851CB #697BD8 #99A6E4

Accessibility & contrast

On white

6.55
#3851CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3851CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3851CB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851CB#FFFFFF#000000##FFFFFF
##3851CB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0057C9
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3851cb;
/* rgb */ color: rgb(56, 81, 203);
/* oklch */ color: oklch(49.2% 0.191 269.2);
Tailwind
colors: {
  custom: {
    50: '#8281dc',
    500: '#3851cb',
    950: '#000000',
  },
}
SCSS
$custom: #3851cb;
$custom-light: #8281dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3851cb",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 229.796,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.1906,
    "h": 269.2
  },
  "luminance": 0.11037
}

Semantic roles & 50–950 ramp

primary
#3851CB
secondary
#D0C58F
accent
#C746E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3851CB

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

Preview Lab → · Contrast checker → · Palette generator →

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