#3840C3#3840C3

#3840C3 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.5% C 0.200 H 272.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#3840C3
RGBrgb(56, 64, 195)
HSLhsl(237, 55%, 49%)
HSVhsv(237, 71%, 76%)
CMYKcmyk(71.3%, 67.2%, 0%, 23.5%)
CIE-LABlab(34.90, 40.28, -69.13)
CIE-LCHlch(34.90, 80.00, 300.23°)
OKLaboklab(45.53% 0.0092 -0.1998)
OKLCHoklch(45.53% 0.2 272.6)
XYZxyz(13.3113, 8.4464, 52.5480)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3840C3 #C3BB38
analogous
#3886C3 #3840C3 #7638C3
triadic
#3840C3 #C33840 #40C338
tetradic
#3840C3 #C33886 #C3BB38 #38C376
square
#3840C3 #C33886 #C3BB38 #38C376
split-complementary
#3840C3 #C37638 #86C338
monochromatic
#1D2164 #2A3093 #3840C3 #656CD3 #9599E1

Accessibility & contrast

On white

7.81
#3840C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3840C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3840C3
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3840C3#FFFFFF#000000##FFFFFF
##3840C31.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3840c3;
/* rgb */ color: rgb(56, 64, 195);
/* oklch */ color: oklch(45.5% 0.200 272.6);
Tailwind
colors: {
  custom: {
    50: '#8275d6',
    500: '#3840c3',
    950: '#000000',
  },
}
SCSS
$custom: #3840c3;
$custom-light: #8275d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3840c3",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 236.547,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45527,
    "c": 0.20003,
    "h": 272.6
  },
  "luminance": 0.08448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3840C3

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

Preview Lab → · Contrast checker → · Palette generator →

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