#3840BA#3840BA

#3840BA is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.188 H 273.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#3840BA
RGBrgb(56, 64, 186)
HSLhsl(236, 54%, 47%)
HSVhsv(236, 70%, 73%)
CMYKcmyk(69.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(34.09, 37.17, -65.16)
CIE-LCHlch(34.09, 75.02, 299.70°)
OKLaboklab(44.69% 0.01 -0.1882)
OKLCHoklch(44.69% 0.188 273)
XYZxyz(12.3242, 8.0515, 47.3495)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840BA #BAB238
analogous
#3881BA #3840BA #7138BA
triadic
#3840BA #BA3840 #40BA38
tetradic
#3840BA #BA3881 #BAB238 #38BA71
square
#3840BA #BA3881 #BAB238 #38BA71
split-complementary
#3840BA #BA7138 #81BA38
monochromatic
#1C205C #2A308B #3840BA #6067CF #8F94DD

Accessibility & contrast

On white

8.04
#3840BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3840BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840BA#FFFFFF#000000##FFFFFF
##3840BA1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004AB8
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3840ba;
/* rgb */ color: rgb(56, 64, 186);
/* oklch */ color: oklch(44.7% 0.188 273.0);
Tailwind
colors: {
  custom: {
    50: '#8075d0',
    500: '#3840ba',
    950: '#000000',
  },
}
SCSS
$custom: #3840ba;
$custom-light: #8075d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3840ba",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 236.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44694,
    "c": 0.18848,
    "h": 273
  },
  "luminance": 0.08053
}

Semantic roles & 50–950 ramp

primary
#3840BA
secondary
#C8C486
accent
#D44BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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