#3156A5#3156A5

#3156A5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.9% C 0.134 H 263.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#3156A5
RGBrgb(49, 86, 165)
HSLhsl(221, 54%, 42%)
HSVhsv(221, 70%, 65%)
CMYKcmyk(70.3%, 47.9%, 0%, 35.3%)
CIE-LABlab(37.89, 14.20, -46.56)
CIE-LCHlch(37.89, 48.68, 286.96°)
OKLaboklab(46.93% -0.0157 -0.1335)
OKLCHoklch(46.93% 0.134 263.3)
XYZxyz(11.3835, 10.0240, 36.9249)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156A5 #A58031
analogous
#3190A5 #3156A5 #4631A5
triadic
#3156A5 #A53156 #56A531
tetradic
#3156A5 #A53190 #A58031 #31A546
square
#3156A5 #A53190 #A58031 #31A546
split-complementary
#3156A5 #A54631 #90A531
monochromatic
#152547 #233D76 #3156A5 #4A73C9 #7997D7

Accessibility & contrast

On white

6.99
#3156A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#3156A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156A5
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156A5#FFFFFF#000000##FFFFFF
##3156A51.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA8
Deuteranopia (green-blind)
#1154A3
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3156a5;
/* rgb */ color: rgb(49, 86, 165);
/* oklch */ color: oklch(46.9% 0.134 263.3);
Tailwind
colors: {
  custom: {
    50: '#7785c0',
    500: '#3156a5',
    950: '#000000',
  },
}
SCSS
$custom: #3156a5;
$custom-light: #7785c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3156a5",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 165
  },
  "hsl": {
    "h": 220.862,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46934,
    "c": 0.13437,
    "h": 263.3
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

primary
#3156A5
secondary
#C0A772
accent
#AF4ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3156A5

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

Preview Lab → · Contrast checker → · Palette generator →

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