#3842D7#3842D7

#3842D7 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.223 H 271.5°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#3842D7
RGBrgb(56, 66, 215)
HSLhsl(236, 67%, 53%)
HSVhsv(236, 74%, 84%)
CMYKcmyk(74%, 69.3%, 0%, 15.7%)
CIE-LABlab(37.19, 45.88, -76.95)
CIE-LCHlch(37.19, 89.59, 300.81°)
OKLaboklab(47.75% 0.0058 -0.2227)
OKLCHoklch(47.75% 0.223 271.5)
XYZxyz(15.8407, 9.6418, 65.3030)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842D7 #D7CD38
analogous
#3892D7 #3842D7 #7D38D7
triadic
#3842D7 #D73842 #42D738
tetradic
#3842D7 #D73892 #D7CD38 #38D77D
square
#3842D7 #D73892 #D7CD38 #38D77D
split-complementary
#3842D7 #D77D38 #92D738
monochromatic
#191F7C #232CAF #3842D7 #6B72E1 #9EA3EB

Accessibility & contrast

On white

7.17
#3842D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3842D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842D7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842D7#FFFFFF#000000##FFFFFF
##3842D71.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3842d7;
/* rgb */ color: rgb(56, 66, 215);
/* oklch */ color: oklch(47.8% 0.223 271.5);
Tailwind
colors: {
  custom: {
    50: '#8677e5',
    500: '#3842d7',
    950: '#000000',
  },
}
SCSS
$custom: #3842d7;
$custom-light: #8677e5;
$custom-dark: #000000;
JSON
{
  "hex": "#3842d7",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 236.226,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4775,
    "c": 0.22276,
    "h": 271.5
  },
  "luminance": 0.09643
}

Semantic roles & 50–950 ramp

primary
#3842D7
secondary
#D8D393
accent
#DF3EE9
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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