#3845AB#3845AB

#3845AB is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.3% C 0.162 H 272.4°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#3845AB
RGBrgb(56, 69, 171)
HSLhsl(233, 51%, 45%)
HSVhsv(233, 67%, 67%)
CMYKcmyk(67.3%, 59.6%, 0%, 32.9%)
CIE-LABlab(34.06, 28.68, -56.32)
CIE-LCHlch(34.06, 63.20, 296.99°)
OKLaboklab(44.28% 0.0068 -0.1622)
OKLCHoklch(44.28% 0.162 272.4)
XYZxyz(11.1072, 8.0363, 39.4860)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845AB #AB9E38
analogous
#387FAB #3845AB #6438AB
triadic
#3845AB #AB3845 #45AB38
tetradic
#3845AB #AB387F #AB9E38 #38AB64
square
#3845AB #AB387F #AB9E38 #38AB64
split-complementary
#3845AB #AB6438 #7FAB38
monochromatic
#1A204F #29327D #3845AB #5865C8 #868FD7

Accessibility & contrast

On white

8.05
#3845AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3845AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845AB
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845AB#FFFFFF#000000##FFFFFF
##3845AB1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3845ab;
/* rgb */ color: rgb(56, 69, 171);
/* oklch */ color: oklch(44.3% 0.162 272.4);
Tailwind
colors: {
  custom: {
    50: '#7d78c5',
    500: '#3845ab',
    950: '#000000',
  },
}
SCSS
$custom: #3845ab;
$custom-light: #7d78c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3845ab",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 233.217,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44281,
    "c": 0.16237,
    "h": 272.4
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#3845AB
secondary
#C1BA7D
accent
#CA4EDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3845AB

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

Preview Lab → · Contrast checker → · Palette generator →

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