#3840BD#3840BD

#3840BD is a dark, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.192 H 272.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#3840BD
RGBrgb(56, 64, 189)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 74%)
CMYKcmyk(70.4%, 66.1%, 0%, 25.9%)
CIE-LABlab(34.36, 38.21, -66.49)
CIE-LCHlch(34.36, 76.69, 299.88°)
OKLaboklab(44.97% 0.0097 -0.1921)
OKLCHoklch(44.97% 0.192 272.9)
XYZxyz(12.6465, 8.1804, 49.0467)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BD #BDB538
analogous
#3882BD #3840BD #7238BD
triadic
#3840BD #BD3840 #40BD38
tetradic
#3840BD #BD3882 #BDB538 #38BD72
square
#3840BD #BD3882 #BDB538 #38BD72
split-complementary
#3840BD #BD7238 #82BD38
monochromatic
#1C205F #2A308E #3840BD #6268D0 #9196DE

Accessibility & contrast

On white

7.97
#3840BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3840BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840BD
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840BD#FFFFFF#000000##FFFFFF
##3840BD1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004BBB
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3840bd;
/* rgb */ color: rgb(56, 64, 189);
/* oklch */ color: oklch(45.0% 0.192 272.9);
Tailwind
colors: {
  custom: {
    50: '#8175d2',
    500: '#3840bd',
    950: '#000000',
  },
}
SCSS
$custom: #3840bd;
$custom-light: #8175d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3840bd",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 236.391,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44969,
    "c": 0.19237,
    "h": 272.9
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840BD

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

Preview Lab → · Contrast checker → · Palette generator →

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