#3156BA#3156BA

#3156BA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.164 H 265.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#3156BA
RGBrgb(49, 86, 186)
HSLhsl(224, 58%, 46%)
HSVhsv(224, 74%, 73%)
CMYKcmyk(73.7%, 53.8%, 0%, 27.1%)
CIE-LABlab(39.33, 22.09, -56.64)
CIE-LCHlch(39.33, 60.79, 291.30°)
OKLaboklab(48.5% -0.0132 -0.1631)
OKLCHoklch(48.5% 0.164 265.4)
XYZxyz(13.4542, 10.8523, 47.8305)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156BA #BA9531
analogous
#319ABA #3156BA #5131BA
triadic
#3156BA #BA3156 #56BA31
tetradic
#3156BA #BA319A #BA9531 #31BA51
square
#3156BA #BA319A #BA9531 #31BA51
split-complementary
#3156BA #BA5131 #9ABA31
monochromatic
#172959 #24408A #3156BA #5677D2 #869EDF

Accessibility & contrast

On white

6.62
#3156BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3156BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156BA
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156BA#FFFFFF#000000##FFFFFF
##3156BA1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BE
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3156ba;
/* rgb */ color: rgb(49, 86, 186);
/* oklch */ color: oklch(48.5% 0.164 265.4);
Tailwind
colors: {
  custom: {
    50: '#7c85cf',
    500: '#3156ba',
    950: '#000000',
  },
}
SCSS
$custom: #3156ba;
$custom-light: #7c85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3156ba",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 223.796,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48495,
    "c": 0.16363,
    "h": 265.4
  },
  "luminance": 0.10854
}

Semantic roles & 50–950 ramp

primary
#3156BA
secondary
#C9B57E
accent
#B846E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3156BA

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

Preview Lab → · Contrast checker → · Palette generator →

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