#3156A2#3156A2

#3156A2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.130 H 262.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#3156A2
RGBrgb(49, 86, 162)
HSLhsl(220, 54%, 41%)
HSVhsv(220, 70%, 64%)
CMYKcmyk(69.8%, 46.9%, 0%, 36.5%)
CIE-LABlab(37.69, 13.07, -45.09)
CIE-LCHlch(37.69, 46.94, 286.17°)
OKLaboklab(46.72% -0.0162 -0.1291)
OKLCHoklch(46.72% 0.13 262.9)
XYZxyz(11.1137, 9.9161, 35.5037)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156A2 #A27D31
analogous
#318FA2 #3156A2 #4531A2
triadic
#3156A2 #A23156 #56A231
tetradic
#3156A2 #A2318F #A27D31 #31A245
square
#3156A2 #A2318F #A27D31 #31A245
split-complementary
#3156A2 #A24531 #8FA231
monochromatic
#152444 #233D73 #3156A2 #4872C8 #7796D6

Accessibility & contrast

On white

7.04
#3156A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#3156A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3156A2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156A2#FFFFFF#000000##FFFFFF
##3156A21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3156a2;
/* rgb */ color: rgb(49, 86, 162);
/* oklch */ color: oklch(46.7% 0.130 262.9);
Tailwind
colors: {
  custom: {
    50: '#7785be',
    500: '#3156a2',
    950: '#000000',
  },
}
SCSS
$custom: #3156a2;
$custom-light: #7785be;
$custom-dark: #000000;
JSON
{
  "hex": "#3156a2",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 162
  },
  "hsl": {
    "h": 220.354,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46723,
    "c": 0.13011,
    "h": 262.9
  },
  "luminance": 0.09917
}

Semantic roles & 50–950 ramp

primary
#3156A2
secondary
#BEA571
accent
#AD4BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3156A2

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

Preview Lab → · Contrast checker → · Palette generator →

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