#3847AF#3847AF

#3847AF is a dark, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.165 H 271.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#3847AF
RGBrgb(56, 71, 175)
HSLhsl(232, 52%, 45%)
HSVhsv(232, 68%, 69%)
CMYKcmyk(68%, 59.4%, 0%, 31.4%)
CIE-LABlab(34.89, 28.82, -57.35)
CIE-LCHlch(34.89, 64.18, 296.68°)
OKLaboklab(45% 0.0051 -0.1652)
OKLCHoklch(45% 0.165 271.8)
XYZxyz(11.6194, 8.4413, 41.5661)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3847AF #AFA038
analogous
#3882AF #3847AF #6438AF
triadic
#3847AF #AF3847 #47AF38
tetradic
#3847AF #AF3882 #AFA038 #38AF64
square
#3847AF #AF3882 #AFA038 #38AF64
split-complementary
#3847AF #AF6438 #82AF38
monochromatic
#1A2152 #293481 #3847AF #5A68CA #8893D9

Accessibility & contrast

On white

7.81
#3847AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3847AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3847AF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3847AF#FFFFFF#000000##FFFFFF
##3847AF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B2
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#006174
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3847af;
/* rgb */ color: rgb(56, 71, 175);
/* oklch */ color: oklch(45.0% 0.165 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d7ac8',
    500: '#3847af',
    950: '#000000',
  },
}
SCSS
$custom: #3847af;
$custom-light: #7d7ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#3847af",
  "rgb": {
    "r": 56,
    "g": 71,
    "b": 175
  },
  "hsl": {
    "h": 232.437,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44995,
    "c": 0.16533,
    "h": 271.8
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#3847AF
secondary
#C3BB80
accent
#C94DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3847AF

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

Preview Lab → · Contrast checker → · Palette generator →

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