#3157B9#3157B9

#3157B9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.161 H 265.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#3157B9
RGBrgb(49, 87, 185)
HSLhsl(223, 58%, 46%)
HSVhsv(223, 74%, 73%)
CMYKcmyk(73.5%, 53%, 0%, 27.5%)
CIE-LABlab(39.53, 21.06, -55.73)
CIE-LCHlch(39.53, 59.57, 290.70°)
OKLaboklab(48.62% -0.0141 -0.1604)
OKLCHoklch(48.62% 0.161 265)
XYZxyz(13.4287, 10.9707, 47.2994)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B9 #B99331
analogous
#319BB9 #3157B9 #4F31B9
triadic
#3157B9 #B93157 #57B931
tetradic
#3157B9 #B9319B #B99331 #31B94F
square
#3157B9 #B9319B #B99331 #31B94F
split-complementary
#3157B9 #B94F31 #9BB931
monochromatic
#172958 #244089 #3157B9 #5578D2 #869FDF

Accessibility & contrast

On white

6.57
#3157B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#3157B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B9
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B9#FFFFFF#000000##FFFFFF
##3157B91.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BC
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3157b9;
/* rgb */ color: rgb(49, 87, 185);
/* oklch */ color: oklch(48.6% 0.161 265.0);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#3157b9',
    950: '#000000',
  },
}
SCSS
$custom: #3157b9;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b9",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 185
  },
  "hsl": {
    "h": 223.235,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.48624,
    "c": 0.16101,
    "h": 265
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

primary
#3157B9
secondary
#C8B37D
accent
#B646E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #3157B9

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

Preview Lab → · Contrast checker → · Palette generator →

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