#3851AE#3851AE

#3851AE is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.151 H 268.6°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#3851AE
RGBrgb(56, 81, 174)
HSLhsl(227, 51%, 45%)
HSVhsv(227, 68%, 68%)
CMYKcmyk(67.8%, 53.4%, 0%, 31.8%)
CIE-LABlab(37.45, 21.92, -52.60)
CIE-LCHlch(37.45, 56.99, 292.63°)
OKLaboklab(46.89% -0.0036 -0.1512)
OKLCHoklch(46.89% 0.151 268.6)
XYZxyz(12.2107, 9.7804, 41.2805)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3851AE #AE9538
analogous
#388CAE #3851AE #5A38AE
triadic
#3851AE #AE3851 #51AE38
tetradic
#3851AE #AE388C #AE9538 #38AE5A
square
#3851AE #AE388C #AE9538 #38AE5A
split-complementary
#3851AE #AE5A38 #8CAE38
monochromatic
#1A2651 #293B80 #3851AE #5971CA #8899D9

Accessibility & contrast

On white

7.10
#3851AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3851AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3851AE
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3851AE#FFFFFF#000000##FFFFFF
##3851AE1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125EB1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3851ae;
/* rgb */ color: rgb(56, 81, 174);
/* oklch */ color: oklch(46.9% 0.151 268.6);
Tailwind
colors: {
  custom: {
    50: '#7c81c7',
    500: '#3851ae',
    950: '#000000',
  },
}
SCSS
$custom: #3851ae;
$custom-light: #7c81c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3851ae",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 227.288,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46888,
    "c": 0.1512,
    "h": 268.6
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#3851AE
secondary
#C3B47F
accent
#BD4DDB
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3851AE

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

Preview Lab → · Contrast checker → · Palette generator →

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