#3841B8#3841B8

#3841B8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.185 H 272.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#3841B8
RGBrgb(56, 65, 184)
HSLhsl(236, 53%, 47%)
HSVhsv(236, 70%, 72%)
CMYKcmyk(69.6%, 64.7%, 0%, 27.8%)
CIE-LABlab(34.15, 35.84, -63.88)
CIE-LCHlch(34.15, 73.25, 299.30°)
OKLaboklab(44.69% 0.0094 -0.1845)
OKLCHoklch(44.69% 0.185 272.9)
XYZxyz(12.1700, 8.0809, 46.2565)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841B8 #B8AF38
analogous
#3881B8 #3841B8 #6F38B8
triadic
#3841B8 #B83841 #41B838
tetradic
#3841B8 #B83881 #B8AF38 #38B86F
square
#3841B8 #B83881 #B8AF38 #38B86F
split-complementary
#3841B8 #B86F38 #81B838
monochromatic
#1B205A #2A3089 #3841B8 #5F67CE #8E93DD

Accessibility & contrast

On white

8.03
#3841B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3841B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841B8
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841B8#FFFFFF#000000##FFFFFF
##3841B81.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3841b8;
/* rgb */ color: rgb(56, 65, 184);
/* oklch */ color: oklch(44.7% 0.185 272.9);
Tailwind
colors: {
  custom: {
    50: '#8076ce',
    500: '#3841b8',
    950: '#000000',
  },
}
SCSS
$custom: #3841b8;
$custom-light: #8076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3841b8",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 235.781,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44685,
    "c": 0.1847,
    "h": 272.9
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#3841B8
secondary
#C7C285
accent
#D24BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3841B8

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

Preview Lab → · Contrast checker → · Palette generator →

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