#3840B4#3840B4

#3840B4 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.1% C 0.181 H 273.3°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3840B4
RGBrgb(56, 64, 180)
HSLhsl(236, 53%, 46%)
HSVhsv(236, 69%, 71%)
CMYKcmyk(68.9%, 64.4%, 0%, 29.4%)
CIE-LABlab(33.57, 35.07, -62.47)
CIE-LCHlch(33.57, 71.64, 299.31°)
OKLaboklab(44.15% 0.0104 -0.1803)
OKLCHoklch(44.15% 0.181 273.3)
XYZxyz(11.6997, 7.8017, 44.0605)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840B4 #B4AC38
analogous
#387EB4 #3840B4 #6E38B4
triadic
#3840B4 #B43840 #40B438
tetradic
#3840B4 #B4387E #B4AC38 #38B46E
square
#3840B4 #B4387E #B4AC38 #38B46E
split-complementary
#3840B4 #B46E38 #7EB438
monochromatic
#1B1F57 #292F85 #3840B4 #5D64CD #8B91DB

Accessibility & contrast

On white

8.20
#3840B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3840B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840B4
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840B4#FFFFFF#000000##FFFFFF
##3840B41.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005E74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3840b4;
/* rgb */ color: rgb(56, 64, 180);
/* oklch */ color: oklch(44.1% 0.181 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f75cb',
    500: '#3840b4',
    950: '#000000',
  },
}
SCSS
$custom: #3840b4;
$custom-light: #7f75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3840b4",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 236.129,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4415,
    "c": 0.18064,
    "h": 273.3
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#3840B4
secondary
#C5C182
accent
#D34CDC
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840B4

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

Preview Lab → · Contrast checker → · Palette generator →

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