#3840B7#3840B7

#3840B7 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.185 H 273.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#3840B7
RGBrgb(56, 64, 183)
HSLhsl(236, 53%, 47%)
HSVhsv(236, 69%, 72%)
CMYKcmyk(69.4%, 65%, 0%, 28.2%)
CIE-LABlab(33.83, 36.12, -63.82)
CIE-LCHlch(33.83, 73.34, 299.51°)
OKLaboklab(44.42% 0.0102 -0.1843)
OKLCHoklch(44.42% 0.185 273.2)
XYZxyz(12.0087, 7.9253, 45.6874)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840B7 #B7AF38
analogous
#3880B7 #3840B7 #6F38B7
triadic
#3840B7 #B73840 #40B738
tetradic
#3840B7 #B73880 #B7AF38 #38B76F
square
#3840B7 #B73880 #B7AF38 #38B76F
split-complementary
#3840B7 #B76F38 #80B738
monochromatic
#1B1F59 #2A3088 #3840B7 #5E65CE #8D92DC

Accessibility & contrast

On white

8.12
#3840B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#3840B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840B7
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840B7#FFFFFF#000000##FFFFFF
##3840B71.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3840b7;
/* rgb */ color: rgb(56, 64, 183);
/* oklch */ color: oklch(44.4% 0.185 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f75ce',
    500: '#3840b7',
    950: '#000000',
  },
}
SCSS
$custom: #3840b7;
$custom-light: #7f75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3840b7",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 236.22,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44421,
    "c": 0.18457,
    "h": 273.2
  },
  "luminance": 0.07926
}

Semantic roles & 50–950 ramp

primary
#3840B7
secondary
#C7C384
accent
#D34BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3840B7

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

Preview Lab → · Contrast checker → · Palette generator →

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