#3840BC#3840BC

#3840BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.9% C 0.191 H 272.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#3840BC
RGBrgb(56, 64, 188)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(70.2%, 66%, 0%, 26.3%)
CIE-LABlab(34.27, 37.86, -66.05)
CIE-LCHlch(34.27, 76.13, 299.82°)
OKLaboklab(44.88% 0.0098 -0.1908)
OKLCHoklch(44.88% 0.191 272.9)
XYZxyz(12.5383, 8.1372, 48.4771)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BC #BCB438
analogous
#3882BC #3840BC #7238BC
triadic
#3840BC #BC3840 #40BC38
tetradic
#3840BC #BC3882 #BCB438 #38BC72
square
#3840BC #BC3882 #BCB438 #38BC72
split-complementary
#3840BC #BC7238 #82BC38
monochromatic
#1C205E #2A308D #3840BC #6168D0 #9095DE

Accessibility & contrast

On white

7.99
#3840BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3840BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840BC
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840BC#FFFFFF#000000##FFFFFF
##3840BC1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3840bc;
/* rgb */ color: rgb(56, 64, 188);
/* oklch */ color: oklch(44.9% 0.191 272.9);
Tailwind
colors: {
  custom: {
    50: '#8175d1',
    500: '#3840bc',
    950: '#000000',
  },
}
SCSS
$custom: #3840bc;
$custom-light: #8175d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3840bc",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 236.364,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44877,
    "c": 0.19107,
    "h": 272.9
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#3840BC
secondary
#C9C587
accent
#D54ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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