#3840C2#3840C2

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

Color values

HEX#3840C2
RGBrgb(56, 64, 194)
HSLhsl(237, 55%, 49%)
HSVhsv(237, 71%, 76%)
CMYKcmyk(71.1%, 67%, 0%, 23.9%)
CIE-LABlab(34.80, 39.93, -68.69)
CIE-LCHlch(34.80, 79.45, 300.17°)
OKLaboklab(45.43% 0.0093 -0.1985)
OKLCHoklch(45.43% 0.199 272.7)
XYZxyz(13.1986, 8.4013, 51.9545)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C2 #C2BA38
analogous
#3885C2 #3840C2 #7538C2
triadic
#3840C2 #C23840 #40C238
tetradic
#3840C2 #C23885 #C2BA38 #38C275
square
#3840C2 #C23885 #C2BA38 #38C275
split-complementary
#3840C2 #C27538 #85C238
monochromatic
#1D2163 #2A3093 #3840C2 #656BD2 #9499E0

Accessibility & contrast

On white

7.83
#3840C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3840C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3840C2#FFFFFF#000000##FFFFFF
##3840C21.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#004BC0
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3840c2;
/* rgb */ color: rgb(56, 64, 194);
/* oklch */ color: oklch(45.4% 0.199 272.7);
Tailwind
colors: {
  custom: {
    50: '#8275d6',
    500: '#3840c2',
    950: '#000000',
  },
}
SCSS
$custom: #3840c2;
$custom-light: #8275d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c2",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 236.522,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45433,
    "c": 0.19877,
    "h": 272.7
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#3840C2
secondary
#CBC88A
accent
#D649DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3840C2

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

Preview Lab → · Contrast checker → · Palette generator →

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