#3842BA#3842BA

#3842BA is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.0% C 0.186 H 272.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3842BA
RGBrgb(56, 66, 186)
HSLhsl(235, 54%, 47%)
HSVhsv(235, 70%, 73%)
CMYKcmyk(69.9%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.56, 35.92, -64.39)
CIE-LCHlch(34.56, 73.73, 299.15°)
OKLaboklab(45.04% 0.0086 -0.1859)
OKLCHoklch(45.04% 0.186 272.6)
XYZxyz(12.4391, 8.2812, 47.3877)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842BA #BAB038
analogous
#3883BA #3842BA #6F38BA
triadic
#3842BA #BA3842 #42BA38
tetradic
#3842BA #BA3883 #BAB038 #38BA6F
square
#3842BA #BA3883 #BAB038 #38BA6F
split-complementary
#3842BA #BA6F38 #83BA38
monochromatic
#1C215C #2A318B #3842BA #6069CF #8F95DD

Accessibility & contrast

On white

7.91
#3842BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3842BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842BA
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842BA#FFFFFF#000000##FFFFFF
##3842BA1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3842ba;
/* rgb */ color: rgb(56, 66, 186);
/* oklch */ color: oklch(45.0% 0.186 272.6);
Tailwind
colors: {
  custom: {
    50: '#8076d0',
    500: '#3842ba',
    950: '#000000',
  },
}
SCSS
$custom: #3842ba;
$custom-light: #8076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3842ba",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 235.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45039,
    "c": 0.18614,
    "h": 272.6
  },
  "luminance": 0.08282
}

Semantic roles & 50–950 ramp

primary
#3842BA
secondary
#C8C386
accent
#D24BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3842BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3842BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva