#3156A4#3156A4

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

Color values

HEX#3156A4
RGBrgb(49, 86, 164)
HSLhsl(221, 54%, 42%)
HSVhsv(221, 70%, 64%)
CMYKcmyk(70.1%, 47.6%, 0%, 35.7%)
CIE-LABlab(37.82, 13.82, -46.07)
CIE-LCHlch(37.82, 48.10, 286.70°)
OKLaboklab(46.86% -0.0159 -0.132)
OKLCHoklch(46.86% 0.133 263.1)
XYZxyz(11.2929, 9.9877, 36.4474)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156A4 #A47F31
analogous
#3190A4 #3156A4 #4631A4
triadic
#3156A4 #A43156 #56A431
tetradic
#3156A4 #A43190 #A47F31 #31A446
square
#3156A4 #A43190 #A47F31 #31A446
split-complementary
#3156A4 #A44631 #90A431
monochromatic
#152546 #233D75 #3156A4 #4972C9 #7997D7

Accessibility & contrast

On white

7.01
#3156A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#3156A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156A4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156A4#FFFFFF#000000##FFFFFF
##3156A41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5FA7
Deuteranopia (green-blind)
#1354A2
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3156a4;
/* rgb */ color: rgb(49, 86, 164);
/* oklch */ color: oklch(46.9% 0.133 263.1);
Tailwind
colors: {
  custom: {
    50: '#7785bf',
    500: '#3156a4',
    950: '#000000',
  },
}
SCSS
$custom: #3156a4;
$custom-light: #7785bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3156a4",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 164
  },
  "hsl": {
    "h": 220.696,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46864,
    "c": 0.13295,
    "h": 263.1
  },
  "luminance": 0.09989
}

Semantic roles & 50–950 ramp

primary
#3156A4
secondary
#BFA672
accent
#AE4ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3156A4

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

Preview Lab → · Contrast checker → · Palette generator →

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