#3845AC#3845AC

#3845AC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.4% C 0.164 H 272.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#3845AC
RGBrgb(56, 69, 172)
HSLhsl(233, 51%, 45%)
HSVhsv(233, 67%, 67%)
CMYKcmyk(67.4%, 59.9%, 0%, 32.5%)
CIE-LABlab(34.14, 29.04, -56.78)
CIE-LCHlch(34.14, 63.78, 297.09°)
OKLaboklab(44.37% 0.0068 -0.1636)
OKLCHoklch(44.37% 0.164 272.4)
XYZxyz(11.2029, 8.0745, 39.9899)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845AC #AC9F38
analogous
#387FAC #3845AC #6538AC
triadic
#3845AC #AC3845 #45AC38
tetradic
#3845AC #AC387F #AC9F38 #38AC65
square
#3845AC #AC387F #AC9F38 #38AC65
split-complementary
#3845AC #AC6538 #7FAC38
monochromatic
#1A2050 #29327E #3845AC #5865C9 #8790D8

Accessibility & contrast

On white

8.03
#3845AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3845AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845AC
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845AC#FFFFFF#000000##FFFFFF
##3845AC1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3845ac;
/* rgb */ color: rgb(56, 69, 172);
/* oklch */ color: oklch(44.4% 0.164 272.4);
Tailwind
colors: {
  custom: {
    50: '#7d78c6',
    500: '#3845ac',
    950: '#000000',
  },
}
SCSS
$custom: #3845ac;
$custom-light: #7d78c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3845ac",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 233.276,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44365,
    "c": 0.16374,
    "h": 272.4
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#3845AC
secondary
#C2BA7E
accent
#CB4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3845AC

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

Preview Lab → · Contrast checker → · Palette generator →

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