#3847AC#3847AC

#3847AC is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.7% C 0.161 H 271.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#3847AC
RGBrgb(56, 71, 172)
HSLhsl(232, 51%, 45%)
HSVhsv(232, 67%, 67%)
CMYKcmyk(67.4%, 58.7%, 0%, 32.5%)
CIE-LABlab(34.65, 27.74, -55.95)
CIE-LCHlch(34.65, 62.45, 296.37°)
OKLaboklab(44.75% 0.0051 -0.1611)
OKLCHoklch(44.75% 0.161 271.8)
XYZxyz(11.3280, 8.3247, 40.0316)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3847AC #AC9D38
analogous
#3881AC #3847AC #6338AC
triadic
#3847AC #AC3847 #47AC38
tetradic
#3847AC #AC3881 #AC9D38 #38AC63
square
#3847AC #AC3881 #AC9D38 #38AC63
split-complementary
#3847AC #AC6338 #81AC38
monochromatic
#1A2150 #29347E #3847AC #5867C9 #8791D8

Accessibility & contrast

On white

7.88
#3847AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3847AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3847AC
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3847AC#FFFFFF#000000##FFFFFF
##3847AC1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3847ac;
/* rgb */ color: rgb(56, 71, 172);
/* oklch */ color: oklch(44.7% 0.161 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d7ac5',
    500: '#3847ac',
    950: '#000000',
  },
}
SCSS
$custom: #3847ac;
$custom-light: #7d7ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3847ac",
  "rgb": {
    "r": 56,
    "g": 71,
    "b": 172
  },
  "hsl": {
    "h": 232.241,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44746,
    "c": 0.16121,
    "h": 271.8
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#3847AC
secondary
#C2B97E
accent
#C84DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3847AC

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

Preview Lab → · Contrast checker → · Palette generator →

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