#3845C6#3845C6

#3845C6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.198 H 271.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#3845C6
RGBrgb(56, 69, 198)
HSLhsl(235, 56%, 50%)
HSVhsv(235, 72%, 78%)
CMYKcmyk(71.7%, 65.2%, 0%, 22.4%)
CIE-LABlab(36.31, 38.24, -68.55)
CIE-LCHlch(36.31, 78.50, 299.15°)
OKLaboklab(46.64% 0.0057 -0.1981)
OKLCHoklch(46.64% 0.198 271.7)
XYZxyz(13.9486, 9.1728, 54.4506)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845C6 #C6B938
analogous
#388CC6 #3845C6 #7238C6
triadic
#3845C6 #C63845 #45C638
tetradic
#3845C6 #C6388C #C6B938 #38C672
square
#3845C6 #C6388C #C6B938 #38C672
split-complementary
#3845C6 #C67238 #8CC638
monochromatic
#1D2467 #2B3496 #3845C6 #6771D4 #979EE2

Accessibility & contrast

On white

7.41
#3845C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#3845C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845C6
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845C6#FFFFFF#000000##FFFFFF
##3845C61.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCA
Deuteranopia (green-blind)
#004FC4
Tritanopia (blue-blind)
#00677F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3845c6;
/* rgb */ color: rgb(56, 69, 198);
/* oklch */ color: oklch(46.6% 0.198 271.7);
Tailwind
colors: {
  custom: {
    50: '#8279d8',
    500: '#3845c6',
    950: '#000000',
  },
}
SCSS
$custom: #3845c6;
$custom-light: #8279d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3845c6",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 198
  },
  "hsl": {
    "h": 234.507,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46642,
    "c": 0.1982,
    "h": 271.7
  },
  "luminance": 0.09174
}

Semantic roles & 50–950 ramp

primary
#3845C6
secondary
#CDC78D
accent
#D149DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #3845C6

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

Preview Lab → · Contrast checker → · Palette generator →

#3845C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva