#3157B0#3157B0

#3157B0 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.149 H 264.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#3157B0
RGBrgb(49, 87, 176)
HSLhsl(222, 56%, 44%)
HSVhsv(222, 72%, 69%)
CMYKcmyk(72.2%, 50.6%, 0%, 31%)
CIE-LABlab(38.90, 17.68, -51.45)
CIE-LCHlch(38.90, 54.40, 288.96°)
OKLaboklab(47.95% -0.0151 -0.1478)
OKLCHoklch(47.95% 0.149 264.2)
XYZxyz(12.5085, 10.6026, 42.4532)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B0 #B08A31
analogous
#3197B0 #3157B0 #4B31B0
triadic
#3157B0 #B03157 #57B031
tetradic
#3157B0 #B03197 #B08A31 #31B04B
square
#3157B0 #B03197 #B08A31 #31B04B
split-complementary
#3157B0 #B04B31 #97B031
monochromatic
#162850 #243F80 #3157B0 #5076CE #809BDC

Accessibility & contrast

On white

6.73
#3157B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3157B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B0
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B0#FFFFFF#000000##FFFFFF
##3157B01.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B3
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3157b0;
/* rgb */ color: rgb(49, 87, 176);
/* oklch */ color: oklch(47.9% 0.149 264.2);
Tailwind
colors: {
  custom: {
    50: '#7a85c8',
    500: '#3157b0',
    950: '#000000',
  },
}
SCSS
$custom: #3157b0;
$custom-light: #7a85c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b0",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 176
  },
  "hsl": {
    "h": 222.047,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47947,
    "c": 0.14857,
    "h": 264.2
  },
  "luminance": 0.10604
}

Semantic roles & 50–950 ramp

primary
#3157B0
secondary
#C5AE78
accent
#B248E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157B0

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

Preview Lab → · Contrast checker → · Palette generator →

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