#3156C5#3156C5

#3156C5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.4% C 0.179 H 266.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#3156C5
RGBrgb(49, 86, 197)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 77%)
CMYKcmyk(75.1%, 56.3%, 0%, 22.7%)
CIE-LABlab(40.14, 26.20, -61.73)
CIE-LCHlch(40.14, 67.06, 293.00°)
OKLaboklab(49.36% -0.0125 -0.1781)
OKLCHoklch(49.36% 0.179 266)
XYZxyz(14.6689, 11.3381, 54.2279)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156C5 #C5A031
analogous
#31A0C5 #3156C5 #5631C5
triadic
#3156C5 #C53156 #56C531
tetradic
#3156C5 #C531A0 #C5A031 #31C556
square
#3156C5 #C531A0 #C5A031 #31C556
split-complementary
#3156C5 #C55631 #A0C531
monochromatic
#192B63 #254194 #3156C5 #5D7BD7 #8EA3E3

Accessibility & contrast

On white

6.43
#3156C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3156C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156C5
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156C5#FFFFFF#000000##FFFFFF
##3156C51.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#0058C3
Tritanopia (blue-blind)
#007185
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3156c5;
/* rgb */ color: rgb(49, 86, 197);
/* oklch */ color: oklch(49.4% 0.179 266.0);
Tailwind
colors: {
  custom: {
    50: '#7e85d7',
    500: '#3156c5',
    950: '#000000',
  },
}
SCSS
$custom: #3156c5;
$custom-light: #7e85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3156c5",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 197
  },
  "hsl": {
    "h": 225,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49365,
    "c": 0.17851,
    "h": 266
  },
  "luminance": 0.1134
}

Semantic roles & 50–950 ramp

primary
#3156C5
secondary
#CDBB85
accent
#BC44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3156C5

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

Preview Lab → · Contrast checker → · Palette generator →

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