#3841BA#3841BA

#3841BA is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.187 H 272.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#3841BA
RGBrgb(56, 65, 186)
HSLhsl(236, 54%, 47%)
HSVhsv(236, 70%, 73%)
CMYKcmyk(69.9%, 65.1%, 0%, 27.1%)
CIE-LABlab(34.32, 36.54, -64.78)
CIE-LCHlch(34.32, 74.37, 299.43°)
OKLaboklab(44.87% 0.0093 -0.1871)
OKLCHoklch(44.87% 0.187 272.8)
XYZxyz(12.3811, 8.1653, 47.3684)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841BA #BAB138
analogous
#3882BA #3841BA #7038BA
triadic
#3841BA #BA3841 #41BA38
tetradic
#3841BA #BA3882 #BAB138 #38BA70
square
#3841BA #BA3882 #BAB138 #38BA70
split-complementary
#3841BA #BA7038 #82BA38
monochromatic
#1C205C #2A318B #3841BA #6068CF #8F95DD

Accessibility & contrast

On white

7.97
#3841BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3841BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841BA
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841BA#FFFFFF#000000##FFFFFF
##3841BA1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006177
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3841ba;
/* rgb */ color: rgb(56, 65, 186);
/* oklch */ color: oklch(44.9% 0.187 272.8);
Tailwind
colors: {
  custom: {
    50: '#8076d0',
    500: '#3841ba',
    950: '#000000',
  },
}
SCSS
$custom: #3841ba;
$custom-light: #8076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3841ba",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 235.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44866,
    "c": 0.18732,
    "h": 272.8
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#3841BA
secondary
#C8C386
accent
#D34BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3841BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3841BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva