#3845B2#3845B2

#3845B2 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.9% C 0.172 H 272.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#3845B2
RGBrgb(56, 69, 178)
HSLhsl(234, 52%, 46%)
HSVhsv(234, 69%, 70%)
CMYKcmyk(68.5%, 61.2%, 0%, 30.2%)
CIE-LABlab(34.62, 31.18, -59.56)
CIE-LCHlch(34.62, 67.23, 297.63°)
OKLaboklab(44.87% 0.0067 -0.1718)
OKLCHoklch(44.87% 0.172 272.2)
XYZxyz(11.7922, 8.3102, 43.0934)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845B2 #B2A538
analogous
#3882B2 #3845B2 #6838B2
triadic
#3845B2 #B23845 #45B238
tetradic
#3845B2 #B23882 #B2A538 #38B268
square
#3845B2 #B23882 #B2A538 #38B268
split-complementary
#3845B2 #B26838 #82B238
monochromatic
#1B2155 #293383 #3845B2 #5C68CC #8A93DA

Accessibility & contrast

On white

7.89
#3845B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#3845B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845B2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845B2#FFFFFF#000000##FFFFFF
##3845B21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3845b2;
/* rgb */ color: rgb(56, 69, 178);
/* oklch */ color: oklch(44.9% 0.172 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e78ca',
    500: '#3845b2',
    950: '#000000',
  },
}
SCSS
$custom: #3845b2;
$custom-light: #7e78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3845b2",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 233.607,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44874,
    "c": 0.1719,
    "h": 272.2
  },
  "luminance": 0.08311
}

Semantic roles & 50–950 ramp

primary
#3845B2
secondary
#C5BD81
accent
#CC4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3845B2

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

Preview Lab → · Contrast checker → · Palette generator →

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