#3845BA#3845BA

#3845BA is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.183 H 272.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#3845BA
RGBrgb(56, 69, 186)
HSLhsl(234, 54%, 47%)
HSVhsv(234, 70%, 73%)
CMYKcmyk(69.9%, 62.9%, 0%, 27.1%)
CIE-LABlab(35.28, 34.02, -63.21)
CIE-LCHlch(35.28, 71.78, 298.29°)
OKLaboklab(45.57% 0.0064 -0.1825)
OKLCHoklch(45.57% 0.183 272)
XYZxyz(12.6189, 8.6409, 47.4477)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845BA #BAAD38
analogous
#3886BA #3845BA #6C38BA
triadic
#3845BA #BA3845 #45BA38
tetradic
#3845BA #BA3886 #BAAD38 #38BA6C
square
#3845BA #BA3886 #BAAD38 #38BA6C
split-complementary
#3845BA #BA6C38 #86BA38
monochromatic
#1C225C #2A348B #3845BA #606BCF #8F97DD

Accessibility & contrast

On white

7.70
#3845BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#3845BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845BA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845BA#FFFFFF#000000##FFFFFF
##3845BA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#004DB8
Tritanopia (blue-blind)
#006379
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3845ba;
/* rgb */ color: rgb(56, 69, 186);
/* oklch */ color: oklch(45.6% 0.183 272.0);
Tailwind
colors: {
  custom: {
    50: '#8078d0',
    500: '#3845ba',
    950: '#000000',
  },
}
SCSS
$custom: #3845ba;
$custom-light: #8078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3845ba",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 234,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45568,
    "c": 0.18257,
    "h": 272
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#3845BA
secondary
#C8C186
accent
#CE4BDD
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #3845BA

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

Preview Lab → · Contrast checker → · Palette generator →

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