#3840B1#3840B1

#3840B1 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.177 H 273.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#3840B1
RGBrgb(56, 64, 177)
HSLhsl(236, 52%, 46%)
HSVhsv(236, 68%, 69%)
CMYKcmyk(68.4%, 63.8%, 0%, 30.6%)
CIE-LABlab(33.31, 34.02, -61.11)
CIE-LCHlch(33.31, 69.94, 299.11°)
OKLaboklab(43.88% 0.0106 -0.1763)
OKLCHoklch(43.88% 0.177 273.4)
XYZxyz(11.3974, 7.6808, 42.4684)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840B1 #B1A938
analogous
#387CB1 #3840B1 #6C38B1
triadic
#3840B1 #B13840 #40B138
tetradic
#3840B1 #B1387C #B1A938 #38B16C
square
#3840B1 #B1387C #B1A938 #38B16C
split-complementary
#3840B1 #B16C38 #7CB138
monochromatic
#1B1E54 #292F83 #3840B1 #5B62CB #8A8FDA

Accessibility & contrast

On white

8.28
#3840B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3840B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840B1#FFFFFF#000000##FFFFFF
##3840B11.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3840b1;
/* rgb */ color: rgb(56, 64, 177);
/* oklch */ color: oklch(43.9% 0.177 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e75c9',
    500: '#3840b1',
    950: '#000000',
  },
}
SCSS
$custom: #3840b1;
$custom-light: #7e75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3840b1",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 236.033,
    "s": 51.931,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43882,
    "c": 0.17667,
    "h": 273.4
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#3840B1
secondary
#C4C081
accent
#D24CDB
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3840B1

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

Preview Lab → · Contrast checker → · Palette generator →

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