#3841BC#3841BC

#3841BC is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.190 H 272.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#3841BC
RGBrgb(56, 65, 188)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(70.2%, 65.4%, 0%, 26.3%)
CIE-LABlab(34.50, 37.24, -65.67)
CIE-LCHlch(34.50, 75.49, 299.56°)
OKLaboklab(45.05% 0.0091 -0.1897)
OKLCHoklch(45.05% 0.19 272.8)
XYZxyz(12.5952, 8.2510, 48.4960)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841BC #BCB338
analogous
#3883BC #3841BC #7138BC
triadic
#3841BC #BC3841 #41BC38
tetradic
#3841BC #BC3883 #BCB338 #38BC71
square
#3841BC #BC3883 #BCB338 #38BC71
split-complementary
#3841BC #BC7138 #83BC38
monochromatic
#1C205E #2A318D #3841BC #6169D0 #9096DE

Accessibility & contrast

On white

7.92
#3841BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3841BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841BC
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841BC#FFFFFF#000000##FFFFFF
##3841BC1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3841bc;
/* rgb */ color: rgb(56, 65, 188);
/* oklch */ color: oklch(45.0% 0.190 272.8);
Tailwind
colors: {
  custom: {
    50: '#8076d1',
    500: '#3841bc',
    950: '#000000',
  },
}
SCSS
$custom: #3841bc;
$custom-light: #8076d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3841bc",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 235.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.18992,
    "h": 272.8
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

primary
#3841BC
secondary
#C9C487
accent
#D34ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3841BC

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

Preview Lab → · Contrast checker → · Palette generator →

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