#3840AE#3840AE

#3840AE is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.6% C 0.173 H 273.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3840AE
RGBrgb(56, 64, 174)
HSLhsl(236, 51%, 45%)
HSVhsv(236, 68%, 68%)
CMYKcmyk(67.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(33.05, 32.97, -59.74)
CIE-LCHlch(33.05, 68.23, 298.89°)
OKLaboklab(43.62% 0.0108 -0.1723)
OKLCHoklch(43.62% 0.173 273.6)
XYZxyz(11.1017, 7.5625, 40.9108)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840AE #AEA638
analogous
#387BAE #3840AE #6B38AE
triadic
#3840AE #AE3840 #40AE38
tetradic
#3840AE #AE387B #AEA638 #38AE6B
square
#3840AE #AE387B #AEA638 #38AE6B
split-complementary
#3840AE #AE6B38 #7BAE38
monochromatic
#1A1E51 #292F80 #3840AE #5961CA #888DD9

Accessibility & contrast

On white

8.36
#3840AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3840AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840AE
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840AE#FFFFFF#000000##FFFFFF
##3840AE1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3840ae;
/* rgb */ color: rgb(56, 64, 174);
/* oklch */ color: oklch(43.6% 0.173 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e75c7',
    500: '#3840ae',
    950: '#000000',
  },
}
SCSS
$custom: #3840ae;
$custom-light: #7e75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3840ae",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 235.932,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43617,
    "c": 0.17267,
    "h": 273.6
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#3840AE
secondary
#C3BE7F
accent
#D14DDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840AE

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

Preview Lab → · Contrast checker → · Palette generator →

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