#3841B0#3841B0

#3841B0 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.0% C 0.174 H 273.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3841B0
RGBrgb(56, 65, 176)
HSLhsl(236, 52%, 45%)
HSVhsv(236, 68%, 69%)
CMYKcmyk(68.2%, 63.1%, 0%, 31%)
CIE-LABlab(33.47, 33.04, -60.26)
CIE-LCHlch(33.47, 68.72, 298.73°)
OKLaboklab(43.97% 0.0099 -0.1738)
OKLCHoklch(43.97% 0.174 273.3)
XYZxyz(11.3550, 7.7549, 41.9643)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841B0 #B0A738
analogous
#387DB0 #3841B0 #6B38B0
triadic
#3841B0 #B03841 #41B038
tetradic
#3841B0 #B0387D #B0A738 #38B06B
square
#3841B0 #B0387D #B0A738 #38B06B
split-complementary
#3841B0 #B06B38 #7DB038
monochromatic
#1A1F53 #293082 #3841B0 #5B63CB #898FD9

Accessibility & contrast

On white

8.23
#3841B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3841B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841B0
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841B0#FFFFFF#000000##FFFFFF
##3841B01.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3841b0;
/* rgb */ color: rgb(56, 65, 176);
/* oklch */ color: oklch(44.0% 0.174 273.3);
Tailwind
colors: {
  custom: {
    50: '#7e75c9',
    500: '#3841b0',
    950: '#000000',
  },
}
SCSS
$custom: #3841b0;
$custom-light: #7e75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3841b0",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 235.5,
    "s": 51.724,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43972,
    "c": 0.17412,
    "h": 273.3
  },
  "luminance": 0.07756
}

Semantic roles & 50–950 ramp

primary
#3841B0
secondary
#C4BF80
accent
#D04DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3841B0

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

Preview Lab → · Contrast checker → · Palette generator →

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