#3841BE#3841BE

#3841BE is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.193 H 272.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3841BE
RGBrgb(56, 65, 190)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.5%, 65.8%, 0%, 25.5%)
CIE-LABlab(34.68, 37.94, -66.55)
CIE-LCHlch(34.68, 76.61, 299.68°)
OKLaboklab(45.23% 0.009 -0.1923)
OKLCHoklch(45.23% 0.193 272.7)
XYZxyz(12.8123, 8.3378, 49.6394)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841BE #BEB538
analogous
#3884BE #3841BE #7238BE
triadic
#3841BE #BE3841 #41BE38
tetradic
#3841BE #BE3884 #BEB538 #38BE72
square
#3841BE #BE3884 #BEB538 #38BE72
split-complementary
#3841BE #BE7238 #84BE38
monochromatic
#1C215F #2A318F #3841BE #626AD1 #9297DF

Accessibility & contrast

On white

7.87
#3841BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3841BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841BE
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841BE#FFFFFF#000000##FFFFFF
##3841BE1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3841be;
/* rgb */ color: rgb(56, 65, 190);
/* oklch */ color: oklch(45.2% 0.193 272.7);
Tailwind
colors: {
  custom: {
    50: '#8176d3',
    500: '#3841be',
    950: '#000000',
  },
}
SCSS
$custom: #3841be;
$custom-light: #8176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3841be",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 235.97,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4523,
    "c": 0.1925,
    "h": 272.7
  },
  "luminance": 0.08339
}

Semantic roles & 50–950 ramp

primary
#3841BE
secondary
#CAC588
accent
#D44ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3841BE

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

Preview Lab → · Contrast checker → · Palette generator →

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