#3840C5#3840C5

#3840C5 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.7% C 0.203 H 272.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#3840C5
RGBrgb(56, 64, 197)
HSLhsl(237, 56%, 50%)
HSVhsv(237, 72%, 77%)
CMYKcmyk(71.6%, 67.5%, 0%, 22.7%)
CIE-LABlab(35.08, 40.96, -70.00)
CIE-LCHlch(35.08, 81.10, 300.34°)
OKLaboklab(45.72% 0.009 -0.2024)
OKLCHoklch(45.72% 0.203 272.5)
XYZxyz(13.5389, 8.5374, 53.7469)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C5 #C5BD38
analogous
#3886C5 #3840C5 #7738C5
triadic
#3840C5 #C53840 #40C538
tetradic
#3840C5 #C53886 #C5BD38 #38C577
square
#3840C5 #C53886 #C5BD38 #38C577
split-complementary
#3840C5 #C57738 #86C538
monochromatic
#1D2166 #2A3195 #3840C5 #676DD4 #969AE1

Accessibility & contrast

On white

7.76
#3840C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3840C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840C5
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840C5#FFFFFF#000000##FFFFFF
##3840C51.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3840c5;
/* rgb */ color: rgb(56, 64, 197);
/* oklch */ color: oklch(45.7% 0.203 272.5);
Tailwind
colors: {
  custom: {
    50: '#8275d8',
    500: '#3840c5',
    950: '#000000',
  },
}
SCSS
$custom: #3840c5;
$custom-light: #8275d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c5",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 236.596,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45715,
    "c": 0.20257,
    "h": 272.5
  },
  "luminance": 0.08539
}

Semantic roles & 50–950 ramp

primary
#3840C5
secondary
#CDC98C
accent
#D749DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3840C5

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

Preview Lab → · Contrast checker → · Palette generator →

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