#3156B4#3156B4

#3156B4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.155 H 264.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#3156B4
RGBrgb(49, 86, 180)
HSLhsl(223, 57%, 45%)
HSVhsv(223, 73%, 71%)
CMYKcmyk(72.8%, 52.2%, 0%, 29.4%)
CIE-LABlab(38.90, 19.84, -53.81)
CIE-LCHlch(38.90, 57.35, 290.24°)
OKLaboklab(48.04% -0.0138 -0.1548)
OKLCHoklch(48.04% 0.155 264.9)
XYZxyz(12.8297, 10.6025, 44.5415)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156B4 #B48F31
analogous
#3198B4 #3156B4 #4D31B4
triadic
#3156B4 #B43156 #56B431
tetradic
#3156B4 #B43198 #B48F31 #31B44D
square
#3156B4 #B43198 #B48F31 #31B44D
split-complementary
#3156B4 #B44D31 #98B431
monochromatic
#172854 #243F84 #3156B4 #5276D0 #829CDD

Accessibility & contrast

On white

6.73
#3156B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3156B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156B4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156B4#FFFFFF#000000##FFFFFF
##3156B41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1862B7
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3156b4;
/* rgb */ color: rgb(49, 86, 180);
/* oklch */ color: oklch(48.0% 0.155 264.9);
Tailwind
colors: {
  custom: {
    50: '#7a85cb',
    500: '#3156b4',
    950: '#000000',
  },
}
SCSS
$custom: #3156b4;
$custom-light: #7a85cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3156b4",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 180
  },
  "hsl": {
    "h": 223.053,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48035,
    "c": 0.15537,
    "h": 264.9
  },
  "luminance": 0.10604
}

Semantic roles & 50–950 ramp

primary
#3156B4
secondary
#C6B17B
accent
#B547E0
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3156B4

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

Preview Lab → · Contrast checker → · Palette generator →

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