#3841BF#3841BF

#3841BF is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.194 H 272.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3841BF
RGBrgb(56, 65, 191)
HSLhsl(236, 55%, 48%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.7%, 66%, 0%, 25.1%)
CIE-LABlab(34.77, 38.28, -67.00)
CIE-LCHlch(34.77, 77.16, 299.74°)
OKLaboklab(45.32% 0.0089 -0.1936)
OKLCHoklch(45.32% 0.194 272.6)
XYZxyz(12.9220, 8.3817, 50.2169)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841BF #BFB638
analogous
#3884BF #3841BF #7238BF
triadic
#3841BF #BF3841 #41BF38
tetradic
#3841BF #BF3884 #BFB638 #38BF72
square
#3841BF #BF3884 #BFB638 #38BF72
split-complementary
#3841BF #BF7238 #84BF38
monochromatic
#1C2160 #2A3190 #3841BF #636AD1 #9297DF

Accessibility & contrast

On white

7.85
#3841BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3841BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841BF
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841BF#FFFFFF#000000##FFFFFF
##3841BF1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3841bf;
/* rgb */ color: rgb(56, 65, 191);
/* oklch */ color: oklch(45.3% 0.194 272.6);
Tailwind
colors: {
  custom: {
    50: '#8176d3',
    500: '#3841bf',
    950: '#000000',
  },
}
SCSS
$custom: #3841bf;
$custom-light: #8176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3841bf",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 236,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.19379,
    "h": 272.6
  },
  "luminance": 0.08383
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3841BF

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

Preview Lab → · Contrast checker → · Palette generator →

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