#3157B7#3157B7

#3157B7 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.158 H 264.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#3157B7
RGBrgb(49, 87, 183)
HSLhsl(223, 58%, 45%)
HSVhsv(223, 73%, 72%)
CMYKcmyk(73.2%, 52.5%, 0%, 28.2%)
CIE-LABlab(39.39, 20.31, -54.78)
CIE-LCHlch(39.39, 58.43, 290.34°)
OKLaboklab(48.47% -0.0143 -0.1576)
OKLCHoklch(48.47% 0.158 264.8)
XYZxyz(13.2190, 10.8868, 46.1953)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B7 #B79131
analogous
#319AB7 #3157B7 #4E31B7
triadic
#3157B7 #B73157 #57B731
tetradic
#3157B7 #B7319A #B79131 #31B74E
square
#3157B7 #B7319A #B79131 #31B74E
split-complementary
#3157B7 #B74E31 #9AB731
monochromatic
#172956 #244087 #3157B7 #5477D1 #849EDE

Accessibility & contrast

On white

6.61
#3157B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3157B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B7#FFFFFF#000000##FFFFFF
##3157B71.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1663BA
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3157b7;
/* rgb */ color: rgb(49, 87, 183);
/* oklch */ color: oklch(48.5% 0.158 264.8);
Tailwind
colors: {
  custom: {
    50: '#7b85cd',
    500: '#3157b7',
    950: '#000000',
  },
}
SCSS
$custom: #3157b7;
$custom-light: #7b85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b7",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 183
  },
  "hsl": {
    "h": 222.985,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48472,
    "c": 0.15827,
    "h": 264.8
  },
  "luminance": 0.10888
}

Semantic roles & 50–950 ramp

primary
#3157B7
secondary
#C8B27C
accent
#B547E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3157B7

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

Preview Lab → · Contrast checker → · Palette generator →

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