#3840C0#3840C0

#3840C0 is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.196 H 272.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#3840C0
RGBrgb(56, 64, 192)
HSLhsl(236, 55%, 49%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.8%, 66.7%, 0%, 24.7%)
CIE-LABlab(34.62, 39.24, -67.81)
CIE-LCHlch(34.62, 78.35, 300.06°)
OKLaboklab(45.25% 0.0095 -0.196)
OKLCHoklch(45.25% 0.196 272.8)
XYZxyz(12.9755, 8.3120, 50.7795)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C0 #C0B838
analogous
#3884C0 #3840C0 #7438C0
triadic
#3840C0 #C03840 #40C038
tetradic
#3840C0 #C03884 #C0B838 #38C074
square
#3840C0 #C03884 #C0B838 #38C074
split-complementary
#3840C0 #C07438 #84C038
monochromatic
#1C2061 #2A3091 #3840C0 #646AD2 #9397DF

Accessibility & contrast

On white

7.89
#3840C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3840C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840C0
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840C0#FFFFFF#000000##FFFFFF
##3840C01.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004BBE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3840c0;
/* rgb */ color: rgb(56, 64, 192);
/* oklch */ color: oklch(45.2% 0.196 272.8);
Tailwind
colors: {
  custom: {
    50: '#8175d4',
    500: '#3840c0',
    950: '#000000',
  },
}
SCSS
$custom: #3840c0;
$custom-light: #8175d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c0",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 236.471,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45247,
    "c": 0.19621,
    "h": 272.8
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#3840C0
secondary
#CBC789
accent
#D54ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3840C0

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

Preview Lab → · Contrast checker → · Palette generator →

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