#3157B5#3157B5

#3157B5 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.3% C 0.156 H 264.6°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#3157B5
RGBrgb(49, 87, 181)
HSLhsl(223, 57%, 45%)
HSVhsv(223, 73%, 71%)
CMYKcmyk(72.9%, 51.9%, 0%, 29%)
CIE-LABlab(39.25, 19.56, -53.84)
CIE-LCHlch(39.25, 57.28, 289.96°)
OKLaboklab(48.32% -0.0145 -0.1548)
OKLCHoklch(48.32% 0.156 264.6)
XYZxyz(13.0124, 10.8042, 45.1067)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B5 #B58F31
analogous
#3199B5 #3157B5 #4D31B5
triadic
#3157B5 #B53157 #57B531
tetradic
#3157B5 #B53199 #B58F31 #31B54D
square
#3157B5 #B53199 #B58F31 #31B54D
split-complementary
#3157B5 #B54D31 #99B531
monochromatic
#172955 #244085 #3157B5 #5377D0 #839DDD

Accessibility & contrast

On white

6.64
#3157B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3157B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B5#FFFFFF#000000##FFFFFF
##3157B51.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A63B8
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3157b5;
/* rgb */ color: rgb(49, 87, 181);
/* oklch */ color: oklch(48.3% 0.156 264.6);
Tailwind
colors: {
  custom: {
    50: '#7b85cc',
    500: '#3157b5',
    950: '#000000',
  },
}
SCSS
$custom: #3157b5;
$custom-light: #7b85cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b5",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 181
  },
  "hsl": {
    "h": 222.727,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4832,
    "c": 0.15551,
    "h": 264.6
  },
  "luminance": 0.10806
}

Semantic roles & 50–950 ramp

primary
#3157B5
secondary
#C7B17B
accent
#B447E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3157B5

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

Preview Lab → · Contrast checker → · Palette generator →

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