#3840BB#3840BB

#3840BB is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.190 H 273.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3840BB
RGBrgb(56, 64, 187)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 70%, 73%)
CMYKcmyk(70.1%, 65.8%, 0%, 26.7%)
CIE-LABlab(34.18, 37.51, -65.61)
CIE-LCHlch(34.18, 75.57, 299.76°)
OKLaboklab(44.79% 0.0099 -0.1895)
OKLCHoklch(44.79% 0.19 273)
XYZxyz(12.4309, 8.0942, 47.9113)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BB #BBB338
analogous
#3881BB #3840BB #7238BB
triadic
#3840BB #BB3840 #40BB38
tetradic
#3840BB #BB3881 #BBB338 #38BB72
square
#3840BB #BB3881 #BBB338 #38BB72
split-complementary
#3840BB #BB7238 #81BB38
monochromatic
#1C205D #2A308C #3840BB #6167D0 #9094DE

Accessibility & contrast

On white

8.02
#3840BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3840BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840BB
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840BB#FFFFFF#000000##FFFFFF
##3840BB1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3840bb;
/* rgb */ color: rgb(56, 64, 187);
/* oklch */ color: oklch(44.8% 0.190 273.0);
Tailwind
colors: {
  custom: {
    50: '#8075d1',
    500: '#3840bb',
    950: '#000000',
  },
}
SCSS
$custom: #3840bb;
$custom-light: #8075d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3840bb",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 236.336,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44786,
    "c": 0.18978,
    "h": 273
  },
  "luminance": 0.08095
}

Semantic roles & 50–950 ramp

primary
#3840BB
secondary
#C8C486
accent
#D44BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3840BB

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

Preview Lab → · Contrast checker → · Palette generator →

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