#3157BC#3157BC

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

Color values

HEX#3157BC
RGBrgb(49, 87, 188)
HSLhsl(224, 59%, 46%)
HSVhsv(224, 74%, 74%)
CMYKcmyk(73.9%, 53.7%, 0%, 26.3%)
CIE-LABlab(39.75, 22.18, -57.13)
CIE-LCHlch(39.75, 61.29, 291.22°)
OKLaboklab(48.86% -0.0138 -0.1645)
OKLCHoklch(48.86% 0.165 265.2)
XYZxyz(13.7487, 11.0987, 48.9849)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157BC #BC9631
analogous
#319DBC #3157BC #5131BC
triadic
#3157BC #BC3157 #57BC31
tetradic
#3157BC #BC319D #BC9631 #31BC51
square
#3157BC #BC319D #BC9631 #31BC51
split-complementary
#3157BC #BC5131 #9DBC31
monochromatic
#182A5B #24418B #3157BC #5779D3 #88A0E0

Accessibility & contrast

On white

6.52
#3157BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3157BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157BC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157BC#FFFFFF#000000##FFFFFF
##3157BC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0664C0
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3157bc;
/* rgb */ color: rgb(49, 87, 188);
/* oklch */ color: oklch(48.9% 0.165 265.2);
Tailwind
colors: {
  custom: {
    50: '#7c85d1',
    500: '#3157bc',
    950: '#000000',
  },
}
SCSS
$custom: #3157bc;
$custom-light: #7c85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3157bc",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 223.597,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48855,
    "c": 0.16511,
    "h": 265.2
  },
  "luminance": 0.111
}

Semantic roles & 50–950 ramp

primary
#3157BC
secondary
#CAB57F
accent
#B746E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3157BC

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

Preview Lab → · Contrast checker → · Palette generator →

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