#3842C2#3842C2

#3842C2 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.197 H 272.3°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#3842C2
RGBrgb(56, 66, 194)
HSLhsl(236, 55%, 49%)
HSVhsv(236, 71%, 76%)
CMYKcmyk(71.1%, 66%, 0%, 23.9%)
CIE-LABlab(35.26, 38.70, -67.94)
CIE-LCHlch(35.26, 78.19, 299.67°)
OKLaboklab(45.77% 0.008 -0.1963)
OKLCHoklch(45.77% 0.197 272.3)
XYZxyz(13.3134, 8.6309, 51.9928)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842C2 #C2B838
analogous
#3887C2 #3842C2 #7338C2
triadic
#3842C2 #C23842 #42C238
tetradic
#3842C2 #C23887 #C2B838 #38C273
square
#3842C2 #C23887 #C2B838 #38C273
split-complementary
#3842C2 #C27338 #87C238
monochromatic
#1D2263 #2A3293 #3842C2 #656DD2 #949AE0

Accessibility & contrast

On white

7.70
#3842C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3842C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842C2
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842C2#FFFFFF#000000##FFFFFF
##3842C21.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#00647C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3842c2;
/* rgb */ color: rgb(56, 66, 194);
/* oklch */ color: oklch(45.8% 0.197 272.3);
Tailwind
colors: {
  custom: {
    50: '#8277d6',
    500: '#3842c2',
    950: '#000000',
  },
}
SCSS
$custom: #3842c2;
$custom-light: #8277d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3842c2",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 235.652,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45767,
    "c": 0.1965,
    "h": 272.3
  },
  "luminance": 0.08632
}

Semantic roles & 50–950 ramp

primary
#3842C2
secondary
#CBC78A
accent
#D449DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3842C2

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

Preview Lab → · Contrast checker → · Palette generator →

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