#3840C6#3840C6

#3840C6 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 45.8% C 0.204 H 272.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#3840C6
RGBrgb(56, 64, 198)
HSLhsl(237, 56%, 50%)
HSVhsv(237, 72%, 78%)
CMYKcmyk(71.7%, 67.7%, 0%, 22.4%)
CIE-LABlab(35.17, 41.31, -70.43)
CIE-LCHlch(35.17, 81.65, 300.39°)
OKLaboklab(45.81% 0.0089 -0.2036)
OKLCHoklch(45.81% 0.204 272.5)
XYZxyz(13.6539, 8.5834, 54.3523)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C6 #C6BE38
analogous
#3887C6 #3840C6 #7738C6
triadic
#3840C6 #C63840 #40C638
tetradic
#3840C6 #C63887 #C6BE38 #38C677
square
#3840C6 #C63887 #C6BE38 #38C677
split-complementary
#3840C6 #C67738 #87C638
monochromatic
#1D2167 #2B3196 #3840C6 #676DD4 #979BE2

Accessibility & contrast

On white

7.73
#3840C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3840C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840C6
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840C6#FFFFFF#000000##FFFFFF
##3840C61.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3840c6;
/* rgb */ color: rgb(56, 64, 198);
/* oklch */ color: oklch(45.8% 0.204 272.5);
Tailwind
colors: {
  custom: {
    50: '#8375d8',
    500: '#3840c6',
    950: '#000000',
  },
}
SCSS
$custom: #3840c6;
$custom-light: #8375d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c6",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 236.62,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45809,
    "c": 0.20382,
    "h": 272.5
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#3840C6
secondary
#CDC98D
accent
#D749DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3840C6

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

Preview Lab → · Contrast checker → · Palette generator →

#3840C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva