#3847B2#3847B2

#3847B2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.169 H 271.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3847B2
RGBrgb(56, 71, 178)
HSLhsl(233, 52%, 46%)
HSVhsv(233, 69%, 70%)
CMYKcmyk(68.5%, 60.1%, 0%, 30.2%)
CIE-LABlab(35.12, 29.89, -58.74)
CIE-LCHlch(35.12, 65.91, 296.97°)
OKLaboklab(45.25% 0.0051 -0.1693)
OKLCHoklch(45.25% 0.169 271.7)
XYZxyz(11.9173, 8.5605, 43.1351)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3847B2 #B2A338
analogous
#3884B2 #3847B2 #6638B2
triadic
#3847B2 #B23847 #47B238
tetradic
#3847B2 #B23884 #B2A338 #38B266
square
#3847B2 #B23884 #B2A338 #38B266
split-complementary
#3847B2 #B26638 #84B238
monochromatic
#1B2255 #293483 #3847B2 #5C69CC #8A94DA

Accessibility & contrast

On white

7.74
#3847B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3847B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3847B2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3847B2#FFFFFF#000000##FFFFFF
##3847B21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3847b2;
/* rgb */ color: rgb(56, 71, 178);
/* oklch */ color: oklch(45.2% 0.169 271.7);
Tailwind
colors: {
  custom: {
    50: '#7e7aca',
    500: '#3847b2',
    950: '#000000',
  },
}
SCSS
$custom: #3847b2;
$custom-light: #7e7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3847b2",
  "rgb": {
    "r": 56,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 232.623,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45246,
    "c": 0.16942,
    "h": 271.7
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

primary
#3847B2
secondary
#C5BC81
accent
#CA4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3847B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3847B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva