#3157AB#3157AB

#3157AB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.142 H 263.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#3157AB
RGBrgb(49, 87, 171)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 67%)
CMYKcmyk(71.3%, 49.1%, 0%, 32.9%)
CIE-LABlab(38.57, 15.80, -49.04)
CIE-LCHlch(38.57, 51.52, 287.85°)
OKLaboklab(47.58% -0.0157 -0.1407)
OKLCHoklch(47.58% 0.142 263.6)
XYZxyz(12.0229, 10.4084, 39.8956)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AB #AB8531
analogous
#3194AB #3157AB #4831AB
triadic
#3157AB #AB3157 #57AB31
tetradic
#3157AB #AB3194 #AB8531 #31AB48
square
#3157AB #AB3194 #AB8531 #31AB48
split-complementary
#3157AB #AB4831 #94AB31
monochromatic
#16274C #233F7B #3157AB #4D75CC #7D9ADA

Accessibility & contrast

On white

6.81
#3157AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3157AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AB#FFFFFF#000000##FFFFFF
##3157AB1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#0256A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157ab;
/* rgb */ color: rgb(49, 87, 171);
/* oklch */ color: oklch(47.6% 0.142 263.6);
Tailwind
colors: {
  custom: {
    50: '#7885c4',
    500: '#3157ab',
    950: '#000000',
  },
}
SCSS
$custom: #3157ab;
$custom-light: #7885c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3157ab",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 171
  },
  "hsl": {
    "h": 221.311,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47582,
    "c": 0.14158,
    "h": 263.6
  },
  "luminance": 0.1041
}

Semantic roles & 50–950 ramp

primary
#3157AB
secondary
#C2AA75
accent
#B049DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157AB

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

Preview Lab → · Contrast checker → · Palette generator →

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