#3157BD#3157BD

#3157BD is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.9% C 0.166 H 265.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#3157BD
RGBrgb(49, 87, 189)
HSLhsl(224, 59%, 47%)
HSVhsv(224, 74%, 74%)
CMYKcmyk(74.1%, 54%, 0%, 25.9%)
CIE-LABlab(39.82, 22.56, -57.60)
CIE-LCHlch(39.82, 61.86, 291.39°)
OKLaboklab(48.93% -0.0138 -0.1659)
OKLCHoklch(48.93% 0.166 265.3)
XYZxyz(13.8569, 11.1420, 49.5546)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157BD #BD9731
analogous
#319DBD #3157BD #5131BD
triadic
#3157BD #BD3157 #57BD31
tetradic
#3157BD #BD319D #BD9731 #31BD51
square
#3157BD #BD319D #BD9731 #31BD51
split-complementary
#3157BD #BD5131 #9DBD31
monochromatic
#182A5C #24418C #3157BD #5879D4 #88A0E0

Accessibility & contrast

On white

6.50
#3157BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3157BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157BD
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157BD#FFFFFF#000000##FFFFFF
##3157BD1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0265C1
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3157bd;
/* rgb */ color: rgb(49, 87, 189);
/* oklch */ color: oklch(48.9% 0.166 265.3);
Tailwind
colors: {
  custom: {
    50: '#7c85d2',
    500: '#3157bd',
    950: '#000000',
  },
}
SCSS
$custom: #3157bd;
$custom-light: #7c85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3157bd",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 189
  },
  "hsl": {
    "h": 223.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.48933,
    "c": 0.16648,
    "h": 265.3
  },
  "luminance": 0.11143
}

Semantic roles & 50–950 ramp

primary
#3157BD
secondary
#CAB680
accent
#B846E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157BD

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

Preview Lab → · Contrast checker → · Palette generator →

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