#3156AC#3156AC

#3156AC is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.144 H 264.1°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#3156AC
RGBrgb(49, 86, 172)
HSLhsl(222, 56%, 43%)
HSVhsv(222, 72%, 67%)
CMYKcmyk(71.5%, 50%, 0%, 32.5%)
CIE-LABlab(38.35, 16.83, -49.98)
CIE-LCHlch(38.35, 52.73, 288.61°)
OKLaboklab(47.44% -0.0147 -0.1435)
OKLCHoklch(47.44% 0.144 264.1)
XYZxyz(12.0382, 10.2859, 40.3727)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156AC #AC8731
analogous
#3193AC #3156AC #4931AC
triadic
#3156AC #AC3156 #56AC31
tetradic
#3156AC #AC3193 #AC8731 #31AC49
square
#3156AC #AC3193 #AC8731 #31AC49
split-complementary
#3156AC #AC4931 #93AC31
monochromatic
#16264D #233E7C #3156AC #4E74CC #7D99DA

Accessibility & contrast

On white

6.87
#3156AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3156AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156AC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156AC#FFFFFF#000000##FFFFFF
##3156AC1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AF
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3156ac;
/* rgb */ color: rgb(49, 86, 172);
/* oklch */ color: oklch(47.4% 0.144 264.1);
Tailwind
colors: {
  custom: {
    50: '#7985c5',
    500: '#3156ac',
    950: '#000000',
  },
}
SCSS
$custom: #3156ac;
$custom-light: #7985c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3156ac",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 172
  },
  "hsl": {
    "h": 221.951,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47439,
    "c": 0.14423,
    "h": 264.1
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#3156AC
secondary
#C3AC76
accent
#B249DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3156AC

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

Preview Lab → · Contrast checker → · Palette generator →

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