#3845B8#3845B8

#3845B8 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.180 H 272.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3845B8
RGBrgb(56, 69, 184)
HSLhsl(234, 53%, 47%)
HSVhsv(234, 70%, 72%)
CMYKcmyk(69.6%, 62.5%, 0%, 27.8%)
CIE-LABlab(35.12, 33.32, -62.30)
CIE-LCHlch(35.12, 70.65, 298.13°)
OKLaboklab(45.39% 0.0065 -0.1798)
OKLCHoklch(45.39% 0.18 272.1)
XYZxyz(12.4078, 8.5565, 46.3358)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845B8 #B8AB38
analogous
#3885B8 #3845B8 #6B38B8
triadic
#3845B8 #B83845 #45B838
tetradic
#3845B8 #B83885 #B8AB38 #38B86B
square
#3845B8 #B83885 #B8AB38 #38B86B
split-complementary
#3845B8 #B86B38 #85B838
monochromatic
#1B225A #2A3389 #3845B8 #5F6ACE #8E96DD

Accessibility & contrast

On white

7.74
#3845B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3845B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845B8
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845B8#FFFFFF#000000##FFFFFF
##3845B81.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3845b8;
/* rgb */ color: rgb(56, 69, 184);
/* oklch */ color: oklch(45.4% 0.180 272.1);
Tailwind
colors: {
  custom: {
    50: '#7f78ce',
    500: '#3845b8',
    950: '#000000',
  },
}
SCSS
$custom: #3845b8;
$custom-light: #7f78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3845b8",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 233.906,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.17993,
    "h": 272.1
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3845B8

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

Preview Lab → · Contrast checker → · Palette generator →

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