#3840AA#3840AA

#3840AA is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.167 H 273.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#3840AA
RGBrgb(56, 64, 170)
HSLhsl(236, 50%, 44%)
HSVhsv(236, 67%, 67%)
CMYKcmyk(67.1%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.72, 31.56, -57.90)
CIE-LCHlch(32.72, 65.94, 298.59°)
OKLaboklab(43.27% 0.011 -0.1669)
OKLCHoklch(43.27% 0.167 273.8)
XYZxyz(10.7176, 7.4089, 38.8877)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840AA #AAA238
analogous
#3879AA #3840AA #6938AA
triadic
#3840AA #AA3840 #40AA38
tetradic
#3840AA #AA3879 #AAA238 #38AA69
square
#3840AA #AA3879 #AAA238 #38AA69
split-complementary
#3840AA #AA6938 #79AA38
monochromatic
#1A1D4E #292F7C #3840AA #575FC8 #858BD7

Accessibility & contrast

On white

8.46
#3840AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3840AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840AA#FFFFFF#000000##FFFFFF
##3840AA1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3840aa;
/* rgb */ color: rgb(56, 64, 170);
/* oklch */ color: oklch(43.3% 0.167 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d75c4',
    500: '#3840aa',
    950: '#000000',
  },
}
SCSS
$custom: #3840aa;
$custom-light: #7d75c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3840aa",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 235.789,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43267,
    "c": 0.16728,
    "h": 273.8
  },
  "luminance": 0.0741
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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