#3840C1#3840C1

#3840C1 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.197 H 272.7°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#3840C1
RGBrgb(56, 64, 193)
HSLhsl(236, 55%, 49%)
HSVhsv(236, 71%, 76%)
CMYKcmyk(71%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.71, 39.59, -68.25)
CIE-LCHlch(34.71, 78.90, 300.12°)
OKLaboklab(45.34% 0.0094 -0.1973)
OKLCHoklch(45.34% 0.197 272.7)
XYZxyz(13.0867, 8.3565, 51.3650)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C1 #C1B938
analogous
#3885C1 #3840C1 #7538C1
triadic
#3840C1 #C13840 #40C138
tetradic
#3840C1 #C13885 #C1B938 #38C175
square
#3840C1 #C13885 #C1B938 #38C175
split-complementary
#3840C1 #C17538 #85C138
monochromatic
#1C2162 #2A3092 #3840C1 #646BD2 #9498E0

Accessibility & contrast

On white

7.86
#3840C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3840C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840C1#FFFFFF#000000##FFFFFF
##3840C11.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3840c1;
/* rgb */ color: rgb(56, 64, 193);
/* oklch */ color: oklch(45.3% 0.197 272.7);
Tailwind
colors: {
  custom: {
    50: '#8275d5',
    500: '#3840c1',
    950: '#000000',
  },
}
SCSS
$custom: #3840c1;
$custom-light: #8275d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c1",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 236.496,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4534,
    "c": 0.19749,
    "h": 272.7
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#3840C1
secondary
#CBC78A
accent
#D649DE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3840C1

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

Preview Lab → · Contrast checker → · Palette generator →

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