#3157B1#3157B1

#3157B1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.0% C 0.150 H 264.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#3157B1
RGBrgb(49, 87, 177)
HSLhsl(222, 57%, 44%)
HSVhsv(222, 72%, 69%)
CMYKcmyk(72.3%, 50.8%, 0%, 30.6%)
CIE-LABlab(38.97, 18.05, -51.93)
CIE-LCHlch(38.97, 54.98, 289.17°)
OKLaboklab(48.02% -0.015 -0.1492)
OKLCHoklch(48.02% 0.15 264.3)
XYZxyz(12.6078, 10.6424, 42.9762)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B1 #B18B31
analogous
#3197B1 #3157B1 #4B31B1
triadic
#3157B1 #B13157 #57B131
tetradic
#3157B1 #B13197 #B18B31 #31B14B
square
#3157B1 #B13197 #B18B31 #31B14B
split-complementary
#3157B1 #B14B31 #97B131
monochromatic
#162851 #243F81 #3157B1 #5176CF #809CDC

Accessibility & contrast

On white

6.71
#3157B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3157B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B1
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B1#FFFFFF#000000##FFFFFF
##3157B11.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3157b1;
/* rgb */ color: rgb(49, 87, 177);
/* oklch */ color: oklch(48.0% 0.150 264.3);
Tailwind
colors: {
  custom: {
    50: '#7a85c9',
    500: '#3157b1',
    950: '#000000',
  },
}
SCSS
$custom: #3157b1;
$custom-light: #7a85c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b1",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 177
  },
  "hsl": {
    "h": 222.188,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48021,
    "c": 0.14997,
    "h": 264.3
  },
  "luminance": 0.10644
}

Semantic roles & 50–950 ramp

primary
#3157B1
secondary
#C5AE79
accent
#B348E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157B1

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

Preview Lab → · Contrast checker → · Palette generator →

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