#3845B7#3845B7

#3845B7 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.3% C 0.179 H 272.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3845B7
RGBrgb(56, 69, 183)
HSLhsl(234, 53%, 47%)
HSVhsv(234, 69%, 72%)
CMYKcmyk(69.4%, 62.3%, 0%, 28.2%)
CIE-LABlab(35.03, 32.96, -61.85)
CIE-LCHlch(35.03, 70.08, 298.05°)
OKLaboklab(45.31% 0.0065 -0.1785)
OKLCHoklch(45.31% 0.179 272.1)
XYZxyz(12.3034, 8.5147, 45.7857)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845B7 #B7AA38
analogous
#3885B7 #3845B7 #6B38B7
triadic
#3845B7 #B73845 #45B738
tetradic
#3845B7 #B73885 #B7AA38 #38B76B
square
#3845B7 #B73885 #B7AA38 #38B76B
split-complementary
#3845B7 #B76B38 #85B738
monochromatic
#1B2259 #2A3388 #3845B7 #5E6ACE #8D95DC

Accessibility & contrast

On white

7.77
#3845B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3845B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845B7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845B7#FFFFFF#000000##FFFFFF
##3845B71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3845b7;
/* rgb */ color: rgb(56, 69, 183);
/* oklch */ color: oklch(45.3% 0.179 272.1);
Tailwind
colors: {
  custom: {
    50: '#7f78ce',
    500: '#3845b7',
    950: '#000000',
  },
}
SCSS
$custom: #3845b7;
$custom-light: #7f78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3845b7",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 233.858,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45306,
    "c": 0.1786,
    "h": 272.1
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#3845B7
secondary
#C7C084
accent
#CE4BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #3845B7

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

Preview Lab → · Contrast checker → · Palette generator →

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