#3840A8#3840A8

#3840A8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.165 H 273.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#3840A8
RGBrgb(56, 64, 168)
HSLhsl(236, 50%, 44%)
HSVhsv(236, 67%, 66%)
CMYKcmyk(66.7%, 61.9%, 0%, 34.1%)
CIE-LABlab(32.55, 30.85, -56.97)
CIE-LCHlch(32.55, 64.79, 298.44°)
OKLaboklab(43.09% 0.0111 -0.1642)
OKLCHoklch(43.09% 0.165 273.8)
XYZxyz(10.5298, 7.3338, 37.8988)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840A8 #A8A038
analogous
#3878A8 #3840A8 #6838A8
triadic
#3840A8 #A83840 #40A838
tetradic
#3840A8 #A83878 #A8A038 #38A868
square
#3840A8 #A83878 #A8A038 #38A868
split-complementary
#3840A8 #A86838 #78A838
monochromatic
#191D4C #292F7A #3840A8 #565EC7 #848AD6

Accessibility & contrast

On white

8.51
#3840A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3840A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840A8#FFFFFF#000000##FFFFFF
##3840A81.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#0048A6
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3840a8;
/* rgb */ color: rgb(56, 64, 168);
/* oklch */ color: oklch(43.1% 0.165 273.8);
Tailwind
colors: {
  custom: {
    50: '#7c75c3',
    500: '#3840a8',
    950: '#000000',
  },
}
SCSS
$custom: #3840a8;
$custom-light: #7c75c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3840a8",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 235.714,
    "s": 50,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43094,
    "c": 0.16457,
    "h": 273.8
  },
  "luminance": 0.07335
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840A8

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

Preview Lab → · Contrast checker → · Palette generator →

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