#3841AE#3841AE

#3841AE is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.8% C 0.171 H 273.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#3841AE
RGBrgb(56, 65, 174)
HSLhsl(235, 51%, 45%)
HSVhsv(235, 68%, 68%)
CMYKcmyk(67.8%, 62.6%, 0%, 31.8%)
CIE-LABlab(33.30, 32.33, -59.34)
CIE-LCHlch(33.30, 67.58, 298.58°)
OKLaboklab(43.8% 0.01 -0.1711)
OKLCHoklch(43.8% 0.171 273.3)
XYZxyz(11.1586, 7.6763, 40.9298)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841AE #AEA538
analogous
#387CAE #3841AE #6A38AE
triadic
#3841AE #AE3841 #41AE38
tetradic
#3841AE #AE387C #AEA538 #38AE6A
square
#3841AE #AE387C #AEA538 #38AE6A
split-complementary
#3841AE #AE6A38 #7CAE38
monochromatic
#1A1E51 #293080 #3841AE #5962CA #888ED9

Accessibility & contrast

On white

8.28
#3841AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3841AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841AE
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841AE#FFFFFF#000000##FFFFFF
##3841AE1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3841ae;
/* rgb */ color: rgb(56, 65, 174);
/* oklch */ color: oklch(43.8% 0.171 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d75c7',
    500: '#3841ae',
    950: '#000000',
  },
}
SCSS
$custom: #3841ae;
$custom-light: #7d75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3841ae",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 235.424,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43797,
    "c": 0.17144,
    "h": 273.3
  },
  "luminance": 0.07677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3841AE

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

Preview Lab → · Contrast checker → · Palette generator →

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