#3842C0#3842C0

#3842C0 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.194 H 272.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#3842C0
RGBrgb(56, 66, 192)
HSLhsl(236, 55%, 49%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.8%, 65.6%, 0%, 24.7%)
CIE-LABlab(35.09, 38.01, -67.06)
CIE-LCHlch(35.09, 77.08, 299.55°)
OKLaboklab(45.58% 0.0081 -0.1938)
OKLCHoklch(45.58% 0.194 272.4)
XYZxyz(13.0903, 8.5417, 50.8178)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842C0 #C0B638
analogous
#3886C0 #3842C0 #7238C0
triadic
#3842C0 #C03842 #42C038
tetradic
#3842C0 #C03886 #C0B638 #38C072
square
#3842C0 #C03886 #C0B638 #38C072
split-complementary
#3842C0 #C07238 #86C038
monochromatic
#1C2161 #2A3291 #3842C0 #646CD2 #9399DF

Accessibility & contrast

On white

7.75
#3842C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3842C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842C0
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842C0#FFFFFF#000000##FFFFFF
##3842C01.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3842c0;
/* rgb */ color: rgb(56, 66, 192);
/* oklch */ color: oklch(45.6% 0.194 272.4);
Tailwind
colors: {
  custom: {
    50: '#8176d4',
    500: '#3842c0',
    950: '#000000',
  },
}
SCSS
$custom: #3842c0;
$custom-light: #8176d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3842c0",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 235.588,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45583,
    "c": 0.19393,
    "h": 272.4
  },
  "luminance": 0.08543
}

Semantic roles & 50–950 ramp

primary
#3842C0
secondary
#CBC689
accent
#D34ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3842C0

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

Preview Lab → · Contrast checker → · Palette generator →

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