#3845C1#3845C1

#3845C1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.2% C 0.192 H 271.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#3845C1
RGBrgb(56, 69, 193)
HSLhsl(234, 55%, 49%)
HSVhsv(234, 71%, 76%)
CMYKcmyk(71%, 64.2%, 0%, 24.3%)
CIE-LABlab(35.88, 36.49, -66.34)
CIE-LCHlch(35.88, 75.72, 298.81°)
OKLaboklab(46.19% 0.006 -0.1916)
OKLCHoklch(46.19% 0.192 271.8)
XYZxyz(13.3814, 8.9459, 51.4633)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845C1 #C1B438
analogous
#388AC1 #3845C1 #7038C1
triadic
#3845C1 #C13845 #45C138
tetradic
#3845C1 #C1388A #C1B438 #38C170
square
#3845C1 #C1388A #C1B438 #38C170
split-complementary
#3845C1 #C17038 #8AC138
monochromatic
#1C2362 #2A3492 #3845C1 #646FD2 #949BE0

Accessibility & contrast

On white

7.53
#3845C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3845C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845C1
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845C1#FFFFFF#000000##FFFFFF
##3845C11.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3845c1;
/* rgb */ color: rgb(56, 69, 193);
/* oklch */ color: oklch(46.2% 0.192 271.8);
Tailwind
colors: {
  custom: {
    50: '#8179d5',
    500: '#3845c1',
    950: '#000000',
  },
}
SCSS
$custom: #3845c1;
$custom-light: #8179d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3845c1",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 193
  },
  "hsl": {
    "h": 234.307,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4619,
    "c": 0.19175,
    "h": 271.8
  },
  "luminance": 0.08947
}

Semantic roles & 50–950 ramp

primary
#3845C1
secondary
#CBC58A
accent
#D049DE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #3845C1

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

Preview Lab → · Contrast checker → · Palette generator →

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