#3156B7#3156B7

#3156B7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.3% C 0.160 H 265.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3156B7
RGBrgb(49, 86, 183)
HSLhsl(223, 58%, 45%)
HSVhsv(223, 73%, 72%)
CMYKcmyk(73.2%, 53%, 0%, 28.2%)
CIE-LABlab(39.12, 20.96, -55.23)
CIE-LCHlch(39.12, 59.07, 290.79°)
OKLaboklab(48.26% -0.0135 -0.1589)
OKLCHoklch(48.26% 0.16 265.1)
XYZxyz(13.1386, 10.7260, 46.1685)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156B7 #B79231
analogous
#3199B7 #3156B7 #4F31B7
triadic
#3156B7 #B73156 #56B731
tetradic
#3156B7 #B73199 #B79231 #31B74F
square
#3156B7 #B73199 #B79231 #31B74F
split-complementary
#3156B7 #B74F31 #99B731
monochromatic
#172956 #243F87 #3156B7 #5477D1 #849DDE

Accessibility & contrast

On white

6.68
#3156B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#3156B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156B7
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156B7#FFFFFF#000000##FFFFFF
##3156B71.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1163BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3156b7;
/* rgb */ color: rgb(49, 86, 183);
/* oklch */ color: oklch(48.3% 0.160 265.1);
Tailwind
colors: {
  custom: {
    50: '#7b85cd',
    500: '#3156b7',
    950: '#000000',
  },
}
SCSS
$custom: #3156b7;
$custom-light: #7b85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3156b7",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 183
  },
  "hsl": {
    "h": 223.433,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48264,
    "c": 0.15951,
    "h": 265.1
  },
  "luminance": 0.10727
}

Semantic roles & 50–950 ramp

primary
#3156B7
secondary
#C8B37C
accent
#B647E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3156B7

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

Preview Lab → · Contrast checker → · Palette generator →

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