#3156AB#3156AB

#3156AB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.4% C 0.143 H 264.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#3156AB
RGBrgb(49, 86, 171)
HSLhsl(222, 55%, 43%)
HSVhsv(222, 71%, 67%)
CMYKcmyk(71.3%, 49.7%, 0%, 32.9%)
CIE-LABlab(38.28, 16.45, -49.49)
CIE-LCHlch(38.28, 52.15, 288.39°)
OKLaboklab(47.37% -0.0148 -0.1421)
OKLCHoklch(47.37% 0.143 264)
XYZxyz(11.9425, 10.2476, 39.8688)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156AB #AB8631
analogous
#3193AB #3156AB #4931AB
triadic
#3156AB #AB3156 #56AB31
tetradic
#3156AB #AB3193 #AB8631 #31AB49
square
#3156AB #AB3193 #AB8631 #31AB49
split-complementary
#3156AB #AB4931 #93AB31
monochromatic
#16264C #233E7B #3156AB #4D74CC #7D99DA

Accessibility & contrast

On white

6.89
#3156AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3156AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156AB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156AB#FFFFFF#000000##FFFFFF
##3156AB1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AE
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3156ab;
/* rgb */ color: rgb(49, 86, 171);
/* oklch */ color: oklch(47.4% 0.143 264.0);
Tailwind
colors: {
  custom: {
    50: '#7985c5',
    500: '#3156ab',
    950: '#000000',
  },
}
SCSS
$custom: #3156ab;
$custom-light: #7985c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3156ab",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 171
  },
  "hsl": {
    "h": 221.803,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47366,
    "c": 0.14283,
    "h": 264
  },
  "luminance": 0.10249
}

Semantic roles & 50–950 ramp

primary
#3156AB
secondary
#C2AB75
accent
#B149DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3156AB

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

Preview Lab → · Contrast checker → · Palette generator →

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