#3157BB#3157BB

#3157BB is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.8% C 0.164 H 265.1°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#3157BB
RGBrgb(49, 87, 187)
HSLhsl(223, 58%, 46%)
HSVhsv(223, 74%, 73%)
CMYKcmyk(73.8%, 53.5%, 0%, 26.7%)
CIE-LABlab(39.67, 21.81, -56.67)
CIE-LCHlch(39.67, 60.72, 291.05°)
OKLaboklab(48.78% -0.0139 -0.1632)
OKLCHoklch(48.78% 0.164 265.1)
XYZxyz(13.6413, 11.0557, 48.4191)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157BB #BB9531
analogous
#319CBB #3157BB #5031BB
triadic
#3157BB #BB3157 #57BB31
tetradic
#3157BB #BB319C #BB9531 #31BB50
square
#3157BB #BB319C #BB9531 #31BB50
split-complementary
#3157BB #BB5031 #9CBB31
monochromatic
#182A5A #24408B #3157BB #5679D3 #879FE0

Accessibility & contrast

On white

6.54
#3157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157BB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157BB#FFFFFF#000000##FFFFFF
##3157BB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3157bb;
/* rgb */ color: rgb(49, 87, 187);
/* oklch */ color: oklch(48.8% 0.164 265.1);
Tailwind
colors: {
  custom: {
    50: '#7c85d0',
    500: '#3157bb',
    950: '#000000',
  },
}
SCSS
$custom: #3157bb;
$custom-light: #7c85d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3157bb",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 223.478,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48778,
    "c": 0.16375,
    "h": 265.1
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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