#3840C4#3840C4

#3840C4 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.6% C 0.201 H 272.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3840C4
RGBrgb(56, 64, 196)
HSLhsl(237, 56%, 49%)
HSVhsv(237, 71%, 77%)
CMYKcmyk(71.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(34.99, 40.62, -69.56)
CIE-LCHlch(34.99, 80.55, 300.28°)
OKLaboklab(45.62% 0.0091 -0.2011)
OKLCHoklch(45.62% 0.201 272.6)
XYZxyz(13.4247, 8.4917, 53.1454)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C4 #C4BC38
analogous
#3886C4 #3840C4 #7638C4
triadic
#3840C4 #C43840 #40C438
tetradic
#3840C4 #C43886 #C4BC38 #38C476
square
#3840C4 #C43886 #C4BC38 #38C476
split-complementary
#3840C4 #C47638 #86C438
monochromatic
#1D2165 #2A3094 #3840C4 #666CD3 #969AE1

Accessibility & contrast

On white

7.78
#3840C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3840C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840C4
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840C4#FFFFFF#000000##FFFFFF
##3840C41.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C8
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3840c4;
/* rgb */ color: rgb(56, 64, 196);
/* oklch */ color: oklch(45.6% 0.201 272.6);
Tailwind
colors: {
  custom: {
    50: '#8275d7',
    500: '#3840c4',
    950: '#000000',
  },
}
SCSS
$custom: #3840c4;
$custom-light: #8275d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c4",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 236.571,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45621,
    "c": 0.20129,
    "h": 272.6
  },
  "luminance": 0.08493
}

Semantic roles & 50–950 ramp

primary
#3840C4
secondary
#CCC98C
accent
#D649DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3840C4

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

Preview Lab → · Contrast checker → · Palette generator →

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