#3841B2#3841B2

#3841B2 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.177 H 273.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#3841B2
RGBrgb(56, 65, 178)
HSLhsl(236, 52%, 46%)
HSVhsv(236, 69%, 70%)
CMYKcmyk(68.5%, 63.5%, 0%, 30.2%)
CIE-LABlab(33.64, 33.74, -61.17)
CIE-LCHlch(33.64, 69.86, 298.88°)
OKLaboklab(44.15% 0.0098 -0.1765)
OKLCHoklch(44.15% 0.177 273.2)
XYZxyz(11.5544, 7.8346, 43.0142)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841B2 #B2A938
analogous
#387EB2 #3841B2 #6C38B2
triadic
#3841B2 #B23841 #41B238
tetradic
#3841B2 #B2387E #B2A938 #38B26C
square
#3841B2 #B2387E #B2A938 #38B26C
split-complementary
#3841B2 #B26C38 #7EB238
monochromatic
#1B1F55 #293083 #3841B2 #5C64CC #8A90DA

Accessibility & contrast

On white

8.18
#3841B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3841B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841B2
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841B2#FFFFFF#000000##FFFFFF
##3841B21.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3841b2;
/* rgb */ color: rgb(56, 65, 178);
/* oklch */ color: oklch(44.1% 0.177 273.2);
Tailwind
colors: {
  custom: {
    50: '#7e75ca',
    500: '#3841b2',
    950: '#000000',
  },
}
SCSS
$custom: #3841b2;
$custom-light: #7e75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3841b2",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 235.574,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44149,
    "c": 0.17679,
    "h": 273.2
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#3841B2
secondary
#C5C081
accent
#D14CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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