#3841BD#3841BD

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

Color values

HEX#3841BD
RGBrgb(56, 65, 189)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(70.4%, 65.6%, 0%, 25.9%)
CIE-LABlab(34.59, 37.59, -66.11)
CIE-LCHlch(34.59, 76.05, 299.62°)
OKLaboklab(45.14% 0.0091 -0.191)
OKLCHoklch(45.14% 0.191 272.7)
XYZxyz(12.7034, 8.2942, 49.0657)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841BD #BDB438
analogous
#3883BD #3841BD #7138BD
triadic
#3841BD #BD3841 #41BD38
tetradic
#3841BD #BD3883 #BDB438 #38BD71
square
#3841BD #BD3883 #BDB438 #38BD71
split-complementary
#3841BD #BD7138 #83BD38
monochromatic
#1C215F #2A318E #3841BD #6269D0 #9196DE

Accessibility & contrast

On white

7.90
#3841BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3841BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841BD
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841BD#FFFFFF#000000##FFFFFF
##3841BD1.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)
#0058C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3841bd;
/* rgb */ color: rgb(56, 65, 189);
/* oklch */ color: oklch(45.1% 0.191 272.7);
Tailwind
colors: {
  custom: {
    50: '#8176d2',
    500: '#3841bd',
    950: '#000000',
  },
}
SCSS
$custom: #3841bd;
$custom-light: #8176d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3841bd",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 189
  },
  "hsl": {
    "h": 235.94,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45139,
    "c": 0.19121,
    "h": 272.7
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3841BD

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

Preview Lab → · Contrast checker → · Palette generator →

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