#3841B4#3841B4

#3841B4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.3% C 0.179 H 273.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#3841B4
RGBrgb(56, 65, 180)
HSLhsl(236, 53%, 46%)
HSVhsv(236, 69%, 71%)
CMYKcmyk(68.9%, 63.9%, 0%, 29.4%)
CIE-LABlab(33.81, 34.44, -62.08)
CIE-LCHlch(33.81, 70.99, 299.02°)
OKLaboklab(44.33% 0.0097 -0.1792)
OKLCHoklch(44.33% 0.179 273.1)
XYZxyz(11.7566, 7.9155, 44.0794)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841B4 #B4AB38
analogous
#387FB4 #3841B4 #6D38B4
triadic
#3841B4 #B43841 #41B438
tetradic
#3841B4 #B4387F #B4AB38 #38B46D
square
#3841B4 #B4387F #B4AB38 #38B46D
split-complementary
#3841B4 #B46D38 #7FB438
monochromatic
#1B1F57 #293085 #3841B4 #5D65CD #8B91DB

Accessibility & contrast

On white

8.13
#3841B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3841B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841B4
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841B4#FFFFFF#000000##FFFFFF
##3841B41.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#004AB2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3841b4;
/* rgb */ color: rgb(56, 65, 180);
/* oklch */ color: oklch(44.3% 0.179 273.1);
Tailwind
colors: {
  custom: {
    50: '#7f75cb',
    500: '#3841b4',
    950: '#000000',
  },
}
SCSS
$custom: #3841b4;
$custom-light: #7f75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3841b4",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 235.645,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44326,
    "c": 0.17944,
    "h": 273.1
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#3841B4
secondary
#C5C182
accent
#D24CDC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841B4

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

Preview Lab → · Contrast checker → · Palette generator →

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