#3840B8#3840B8

#3840B8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.5% C 0.186 H 273.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#3840B8
RGBrgb(56, 64, 184)
HSLhsl(236, 53%, 47%)
HSVhsv(236, 70%, 72%)
CMYKcmyk(69.6%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.91, 36.47, -64.27)
CIE-LCHlch(33.91, 73.90, 299.57°)
OKLaboklab(44.51% 0.0101 -0.1856)
OKLCHoklch(44.51% 0.186 273.1)
XYZxyz(12.1131, 7.9671, 46.2375)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840B8 #B8B038
analogous
#3880B8 #3840B8 #7038B8
triadic
#3840B8 #B83840 #40B838
tetradic
#3840B8 #B83880 #B8B038 #38B870
square
#3840B8 #B83880 #B8B038 #38B870
split-complementary
#3840B8 #B87038 #80B838
monochromatic
#1B1F5A #2A3089 #3840B8 #5F66CE #8E93DD

Accessibility & contrast

On white

8.10
#3840B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3840B8
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840B8#FFFFFF#000000##FFFFFF
##3840B81.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3840b8;
/* rgb */ color: rgb(56, 64, 184);
/* oklch */ color: oklch(44.5% 0.186 273.1);
Tailwind
colors: {
  custom: {
    50: '#8075ce',
    500: '#3840b8',
    950: '#000000',
  },
}
SCSS
$custom: #3840b8;
$custom-light: #8075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3840b8",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 236.25,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44512,
    "c": 0.18588,
    "h": 273.1
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840B8

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

Preview Lab → · Contrast checker → · Palette generator →

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