#3842C5#3842C5

#3842C5 is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.0% C 0.200 H 272.2°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#3842C5
RGBrgb(56, 66, 197)
HSLhsl(236, 56%, 50%)
HSVhsv(236, 72%, 77%)
CMYKcmyk(71.6%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.53, 39.74, -69.25)
CIE-LCHlch(35.53, 79.85, 299.85°)
OKLaboklab(46.04% 0.0077 -0.2002)
OKLCHoklch(46.04% 0.2 272.2)
XYZxyz(13.6537, 8.7670, 53.7851)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842C5 #C5BB38
analogous
#3888C5 #3842C5 #7538C5
triadic
#3842C5 #C53842 #42C538
tetradic
#3842C5 #C53888 #C5BB38 #38C575
square
#3842C5 #C53888 #C5BB38 #38C575
split-complementary
#3842C5 #C57538 #88C538
monochromatic
#1D2266 #2A3295 #3842C5 #676ED4 #969CE1

Accessibility & contrast

On white

7.63
#3842C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3842C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842C5
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842C5#FFFFFF#000000##FFFFFF
##3842C51.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3842c5;
/* rgb */ color: rgb(56, 66, 197);
/* oklch */ color: oklch(46.0% 0.200 272.2);
Tailwind
colors: {
  custom: {
    50: '#8277d8',
    500: '#3842c5',
    950: '#000000',
  },
}
SCSS
$custom: #3842c5;
$custom-light: #8277d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3842c5",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 235.745,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46044,
    "c": 0.20033,
    "h": 272.2
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#3842C5
secondary
#CDC88C
accent
#D449DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3842C5

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

Preview Lab → · Contrast checker → · Palette generator →

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