#3157B8#3157B8

#3157B8 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.160 H 264.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#3157B8
RGBrgb(49, 87, 184)
HSLhsl(223, 58%, 46%)
HSVhsv(223, 73%, 72%)
CMYKcmyk(73.4%, 52.7%, 0%, 27.8%)
CIE-LABlab(39.46, 20.68, -55.26)
CIE-LCHlch(39.46, 59.00, 290.52°)
OKLaboklab(48.55% -0.0142 -0.159)
OKLCHoklch(48.55% 0.16 264.9)
XYZxyz(13.3235, 10.9286, 46.7454)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B8 #B89231
analogous
#319AB8 #3157B8 #4E31B8
triadic
#3157B8 #B83157 #57B831
tetradic
#3157B8 #B8319A #B89231 #31B84E
square
#3157B8 #B8319A #B89231 #31B84E
split-complementary
#3157B8 #B84E31 #9AB831
monochromatic
#172957 #244088 #3157B8 #5578D2 #859EDE

Accessibility & contrast

On white

6.59
#3157B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#3157B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B8
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B8#FFFFFF#000000##FFFFFF
##3157B81.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1463BB
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#006E7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3157b8;
/* rgb */ color: rgb(49, 87, 184);
/* oklch */ color: oklch(48.5% 0.160 264.9);
Tailwind
colors: {
  custom: {
    50: '#7b85ce',
    500: '#3157b8',
    950: '#000000',
  },
}
SCSS
$custom: #3157b8;
$custom-light: #7b85ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b8",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 184
  },
  "hsl": {
    "h": 223.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48548,
    "c": 0.15964,
    "h": 264.9
  },
  "luminance": 0.1093
}

Semantic roles & 50–950 ramp

primary
#3157B8
secondary
#C8B37D
accent
#B647E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3157B8

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

Preview Lab → · Contrast checker → · Palette generator →

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