#3845C7#3845C7

#3845C7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.7% C 0.199 H 271.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#3845C7
RGBrgb(56, 69, 199)
HSLhsl(235, 56%, 50%)
HSVhsv(235, 72%, 78%)
CMYKcmyk(71.9%, 65.3%, 0%, 22%)
CIE-LABlab(36.40, 38.59, -68.99)
CIE-LCHlch(36.40, 79.05, 299.22°)
OKLaboklab(46.73% 0.0056 -0.1994)
OKLCHoklch(46.73% 0.199 271.6)
XYZxyz(14.0643, 9.2191, 55.0600)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845C7 #C7BA38
analogous
#388DC7 #3845C7 #7238C7
triadic
#3845C7 #C73845 #45C738
tetradic
#3845C7 #C7388D #C7BA38 #38C772
square
#3845C7 #C7388D #C7BA38 #38C772
split-complementary
#3845C7 #C77238 #8DC738
monochromatic
#1D2467 #2B3497 #3845C7 #6872D4 #989EE2

Accessibility & contrast

On white

7.38
#3845C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3845C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845C7
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845C7#FFFFFF#000000##FFFFFF
##3845C71.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#004FC5
Tritanopia (blue-blind)
#006780
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3845c7;
/* rgb */ color: rgb(56, 69, 199);
/* oklch */ color: oklch(46.7% 0.199 271.6);
Tailwind
colors: {
  custom: {
    50: '#8379d9',
    500: '#3845c7',
    950: '#000000',
  },
}
SCSS
$custom: #3845c7;
$custom-light: #8379d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3845c7",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 234.545,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46733,
    "c": 0.19948,
    "h": 271.6
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#3845C7
secondary
#CDC88D
accent
#D248DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #3845C7

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

Preview Lab → · Contrast checker → · Palette generator →

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