#3840B2#3840B2

#3840B2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.178 H 273.4°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#3840B2
RGBrgb(56, 64, 178)
HSLhsl(236, 52%, 46%)
HSVhsv(236, 69%, 70%)
CMYKcmyk(68.5%, 64%, 0%, 30.2%)
CIE-LABlab(33.39, 34.37, -61.57)
CIE-LCHlch(33.39, 70.51, 299.18°)
OKLaboklab(43.97% 0.0106 -0.1777)
OKLCHoklch(43.97% 0.178 273.4)
XYZxyz(11.4975, 7.7208, 42.9952)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840B2 #B2AA38
analogous
#387DB2 #3840B2 #6D38B2
triadic
#3840B2 #B23840 #40B238
tetradic
#3840B2 #B2387D #B2AA38 #38B26D
square
#3840B2 #B2387D #B2AA38 #38B26D
split-complementary
#3840B2 #B26D38 #7DB238
monochromatic
#1B1F55 #292F83 #3840B2 #5C63CC #8A8FDA

Accessibility & contrast

On white

8.25
#3840B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3840B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840B2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840B2#FFFFFF#000000##FFFFFF
##3840B21.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3840b2;
/* rgb */ color: rgb(56, 64, 178);
/* oklch */ color: oklch(44.0% 0.178 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e75ca',
    500: '#3840b2',
    950: '#000000',
  },
}
SCSS
$custom: #3840b2;
$custom-light: #7e75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3840b2",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 236.066,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43971,
    "c": 0.17799,
    "h": 273.4
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#3840B2
secondary
#C5C081
accent
#D24CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840B2

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

Preview Lab → · Contrast checker → · Palette generator →

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