#3840AB#3840AB

#3840AB is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.169 H 273.7°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#3840AB
RGBrgb(56, 64, 171)
HSLhsl(236, 51%, 45%)
HSVhsv(236, 67%, 67%)
CMYKcmyk(67.3%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.80, 31.91, -58.36)
CIE-LCHlch(32.80, 66.52, 298.67°)
OKLaboklab(43.35% 0.0109 -0.1683)
OKLCHoklch(43.35% 0.169 273.7)
XYZxyz(10.8125, 7.4468, 39.3878)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840AB #ABA338
analogous
#387AAB #3840AB #6A38AB
triadic
#3840AB #AB3840 #40AB38
tetradic
#3840AB #AB387A #ABA338 #38AB6A
square
#3840AB #AB387A #ABA338 #38AB6A
split-complementary
#3840AB #AB6A38 #7AAB38
monochromatic
#1A1D4F #292F7D #3840AB #5860C8 #868CD7

Accessibility & contrast

On white

8.44
#3840AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3840AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840AB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840AB#FFFFFF#000000##FFFFFF
##3840AB1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3840ab;
/* rgb */ color: rgb(56, 64, 171);
/* oklch */ color: oklch(43.4% 0.169 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d75c5',
    500: '#3840ab',
    950: '#000000',
  },
}
SCSS
$custom: #3840ab;
$custom-light: #7d75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3840ab",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 235.826,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43354,
    "c": 0.16863,
    "h": 273.7
  },
  "luminance": 0.07448
}

Semantic roles & 50–950 ramp

primary
#3840AB
secondary
#C1BD7D
accent
#D04EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840AB

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

Preview Lab → · Contrast checker → · Palette generator →

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