#3847AB#3847AB

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

Color values

HEX#3847AB
RGBrgb(56, 71, 171)
HSLhsl(232, 51%, 45%)
HSVhsv(232, 67%, 67%)
CMYKcmyk(67.3%, 58.5%, 0%, 32.9%)
CIE-LABlab(34.57, 27.38, -55.48)
CIE-LCHlch(34.57, 61.87, 296.27°)
OKLaboklab(44.66% 0.0051 -0.1597)
OKLCHoklch(44.66% 0.16 271.8)
XYZxyz(11.2323, 8.2865, 39.5277)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3847AB #AB9C38
analogous
#3881AB #3847AB #6338AB
triadic
#3847AB #AB3847 #47AB38
tetradic
#3847AB #AB3881 #AB9C38 #38AB63
square
#3847AB #AB3881 #AB9C38 #38AB63
split-complementary
#3847AB #AB6338 #81AB38
monochromatic
#1A214F #29347D #3847AB #5867C8 #8691D7

Accessibility & contrast

On white

7.90
#3847AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3847AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3847AB
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3847AB#FFFFFF#000000##FFFFFF
##3847AB1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3847ab;
/* rgb */ color: rgb(56, 71, 171);
/* oklch */ color: oklch(44.7% 0.160 271.8);
Tailwind
colors: {
  custom: {
    50: '#7c7ac5',
    500: '#3847ab',
    950: '#000000',
  },
}
SCSS
$custom: #3847ab;
$custom-light: #7c7ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3847ab",
  "rgb": {
    "r": 56,
    "g": 71,
    "b": 171
  },
  "hsl": {
    "h": 232.174,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44664,
    "c": 0.15983,
    "h": 271.8
  },
  "luminance": 0.08288
}

Semantic roles & 50–950 ramp

primary
#3847AB
secondary
#C1B87D
accent
#C84EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3847AB

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

Preview Lab → · Contrast checker → · Palette generator →

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