#3156A8#3156A8

#3156A8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.1% C 0.139 H 263.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#3156A8
RGBrgb(49, 86, 168)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 66%)
CMYKcmyk(70.8%, 48.8%, 0%, 34.1%)
CIE-LABlab(38.08, 15.32, -48.03)
CIE-LCHlch(38.08, 50.42, 287.69°)
OKLaboklab(47.15% -0.0153 -0.1378)
OKLCHoklch(47.15% 0.139 263.7)
XYZxyz(11.6598, 10.1345, 38.3799)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156A8 #A88331
analogous
#3191A8 #3156A8 #4831A8
triadic
#3156A8 #A83156 #56A831
tetradic
#3156A8 #A83191 #A88331 #31A848
square
#3156A8 #A83191 #A88331 #31A848
split-complementary
#3156A8 #A84831 #91A831
monochromatic
#152549 #233E79 #3156A8 #4C73CB #7B98D8

Accessibility & contrast

On white

6.94
#3156A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3156A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156A8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156A8#FFFFFF#000000##FFFFFF
##3156A81.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAB
Deuteranopia (green-blind)
#0755A6
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3156a8;
/* rgb */ color: rgb(49, 86, 168);
/* oklch */ color: oklch(47.1% 0.139 263.7);
Tailwind
colors: {
  custom: {
    50: '#7885c2',
    500: '#3156a8',
    950: '#000000',
  },
}
SCSS
$custom: #3156a8;
$custom-light: #7885c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3156a8",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 168
  },
  "hsl": {
    "h": 221.345,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47149,
    "c": 0.13861,
    "h": 263.7
  },
  "luminance": 0.10136
}

Semantic roles & 50–950 ramp

primary
#3156A8
secondary
#C1A974
accent
#B04ADE
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3156A8

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

Preview Lab → · Contrast checker → · Palette generator →

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