#3157BF#3157BF

#3157BF is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.1% C 0.169 H 265.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#3157BF
RGBrgb(49, 87, 191)
HSLhsl(224, 59%, 47%)
HSVhsv(224, 74%, 75%)
CMYKcmyk(74.3%, 54.5%, 0%, 25.1%)
CIE-LABlab(39.96, 23.31, -58.53)
CIE-LCHlch(39.96, 63.00, 291.71°)
OKLaboklab(49.09% -0.0136 -0.1686)
OKLCHoklch(49.09% 0.169 265.4)
XYZxyz(14.0755, 11.2294, 50.7058)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157BF #BF9931
analogous
#319EBF #3157BF #5231BF
triadic
#3157BF #BF3157 #57BF31
tetradic
#3157BF #BF319E #BF9931 #31BF52
square
#3157BF #BF319E #BF9931 #31BF52
split-complementary
#3157BF #BF5231 #9EBF31
monochromatic
#182B5E #25418E #3157BF #597AD4 #8AA1E1

Accessibility & contrast

On white

6.47
#3157BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#3157BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157BF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157BF#FFFFFF#000000##FFFFFF
##3157BF1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#0058BD
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3157bf;
/* rgb */ color: rgb(49, 87, 191);
/* oklch */ color: oklch(49.1% 0.169 265.4);
Tailwind
colors: {
  custom: {
    50: '#7d85d3',
    500: '#3157bf',
    950: '#000000',
  },
}
SCSS
$custom: #3157bf;
$custom-light: #7d85d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3157bf",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 223.944,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49089,
    "c": 0.16919,
    "h": 265.4
  },
  "luminance": 0.11231
}

Semantic roles & 50–950 ramp

primary
#3157BF
secondary
#CBB781
accent
#B845E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157BF

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

Preview Lab → · Contrast checker → · Palette generator →

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