#3157AE#3157AE

#3157AE is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.146 H 264.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#3157AE
RGBrgb(49, 87, 174)
HSLhsl(222, 56%, 44%)
HSVhsv(222, 72%, 68%)
CMYKcmyk(71.8%, 50%, 0%, 31.8%)
CIE-LABlab(38.77, 16.92, -50.49)
CIE-LCHlch(38.77, 53.25, 288.53°)
OKLaboklab(47.8% -0.0153 -0.145)
OKLCHoklch(47.8% 0.146 264)
XYZxyz(12.3121, 10.5241, 41.4187)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AE #AE8831
analogous
#3195AE #3157AE #4931AE
triadic
#3157AE #AE3157 #57AE31
tetradic
#3157AE #AE3195 #AE8831 #31AE49
square
#3157AE #AE3195 #AE8831 #31AE49
split-complementary
#3157AE #AE4931 #95AE31
monochromatic
#16274E #243F7E #3157AE #4F75CD #7F9BDB

Accessibility & contrast

On white

6.76
#3157AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3157AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AE
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AE#FFFFFF#000000##FFFFFF
##3157AE1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2561B1
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157ae;
/* rgb */ color: rgb(49, 87, 174);
/* oklch */ color: oklch(47.8% 0.146 264.0);
Tailwind
colors: {
  custom: {
    50: '#7985c7',
    500: '#3157ae',
    950: '#000000',
  },
}
SCSS
$custom: #3157ae;
$custom-light: #7985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3157ae",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 174
  },
  "hsl": {
    "h": 221.76,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.478,
    "c": 0.14578,
    "h": 264
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#3157AE
secondary
#C4AC77
accent
#B148DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157AE

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

Preview Lab → · Contrast checker → · Palette generator →

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