#3840BE#3840BE

#3840BE is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.1% C 0.194 H 272.9°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#3840BE
RGBrgb(56, 64, 190)
HSLhsl(236, 54%, 48%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.5%, 66.3%, 0%, 25.5%)
CIE-LABlab(34.45, 38.55, -66.93)
CIE-LCHlch(34.45, 77.24, 299.94°)
OKLaboklab(45.06% 0.0096 -0.1934)
OKLCHoklch(45.06% 0.194 272.9)
XYZxyz(12.7554, 8.2240, 49.6204)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BE #BEB638
analogous
#3883BE #3840BE #7338BE
triadic
#3840BE #BE3840 #40BE38
tetradic
#3840BE #BE3883 #BEB638 #38BE73
square
#3840BE #BE3883 #BEB638 #38BE73
split-complementary
#3840BE #BE7338 #83BE38
monochromatic
#1C205F #2A308F #3840BE #6269D1 #9296DF

Accessibility & contrast

On white

7.94
#3840BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3840BE
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840BE#FFFFFF#000000##FFFFFF
##3840BE1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3840be;
/* rgb */ color: rgb(56, 64, 190);
/* oklch */ color: oklch(45.1% 0.194 272.9);
Tailwind
colors: {
  custom: {
    50: '#8175d3',
    500: '#3840be',
    950: '#000000',
  },
}
SCSS
$custom: #3840be;
$custom-light: #8175d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3840be",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 236.418,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45062,
    "c": 0.19365,
    "h": 272.9
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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