#3156B2#3156B2

#3156B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.153 H 264.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3156B2
RGBrgb(49, 86, 178)
HSLhsl(223, 57%, 45%)
HSVhsv(223, 72%, 70%)
CMYKcmyk(72.5%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.76, 19.08, -52.86)
CIE-LCHlch(38.76, 56.20, 289.85°)
OKLaboklab(47.88% -0.014 -0.152)
OKLCHoklch(47.88% 0.153 264.7)
XYZxyz(12.6275, 10.5216, 43.4762)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156B2 #B28D31
analogous
#3196B2 #3156B2 #4D31B2
triadic
#3156B2 #B23156 #56B231
tetradic
#3156B2 #B23196 #B28D31 #31B24D
square
#3156B2 #B23196 #B28D31 #31B24D
split-complementary
#3156B2 #B24D31 #96B231
monochromatic
#172852 #243F82 #3156B2 #5175CF #819BDC

Accessibility & contrast

On white

6.76
#3156B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3156B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156B2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156B2#FFFFFF#000000##FFFFFF
##3156B21.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C62B5
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3156b2;
/* rgb */ color: rgb(49, 86, 178);
/* oklch */ color: oklch(47.9% 0.153 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a85ca',
    500: '#3156b2',
    950: '#000000',
  },
}
SCSS
$custom: #3156b2;
$custom-light: #7a85ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3156b2",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 222.791,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47884,
    "c": 0.1526,
    "h": 264.7
  },
  "luminance": 0.10523
}

Semantic roles & 50–950 ramp

primary
#3156B2
secondary
#C5B079
accent
#B448E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3156B2

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

Preview Lab → · Contrast checker → · Palette generator →

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