#3840BF#3840BF

#3840BF is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.195 H 272.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#3840BF
RGBrgb(56, 64, 191)
HSLhsl(236, 55%, 48%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(34.53, 38.90, -67.37)
CIE-LCHlch(34.53, 77.80, 300.00°)
OKLaboklab(45.15% 0.0095 -0.1947)
OKLCHoklch(45.15% 0.195 272.8)
XYZxyz(12.8651, 8.2679, 50.1980)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BF #BFB738
analogous
#3884BF #3840BF #7338BF
triadic
#3840BF #BF3840 #40BF38
tetradic
#3840BF #BF3884 #BFB738 #38BF73
square
#3840BF #BF3884 #BFB738 #38BF73
split-complementary
#3840BF #BF7338 #84BF38
monochromatic
#1C2060 #2A3090 #3840BF #6369D1 #9297DF

Accessibility & contrast

On white

7.91
#3840BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#3840BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840BF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840BF#FFFFFF#000000##FFFFFF
##3840BF1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3840bf;
/* rgb */ color: rgb(56, 64, 191);
/* oklch */ color: oklch(45.2% 0.195 272.8);
Tailwind
colors: {
  custom: {
    50: '#8175d3',
    500: '#3840bf',
    950: '#000000',
  },
}
SCSS
$custom: #3840bf;
$custom-light: #8175d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3840bf",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 236.444,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.19493,
    "h": 272.8
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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