#3157B3#3157B3

#3157B3 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.2% C 0.153 H 264.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3157B3
RGBrgb(49, 87, 179)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 73%, 70%)
CMYKcmyk(72.6%, 51.4%, 0%, 29.8%)
CIE-LABlab(39.11, 18.80, -52.88)
CIE-LCHlch(39.11, 56.13, 289.57°)
OKLaboklab(48.17% -0.0147 -0.152)
OKLCHoklch(48.17% 0.153 264.5)
XYZxyz(12.8086, 10.7227, 44.0337)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B3 #B38D31
analogous
#3198B3 #3157B3 #4C31B3
triadic
#3157B3 #B33157 #57B331
tetradic
#3157B3 #B33198 #B38D31 #31B34C
square
#3157B3 #B33198 #B38D31 #31B34C
split-complementary
#3157B3 #B34C31 #98B331
monochromatic
#172853 #244083 #3157B3 #5276D0 #829CDD

Accessibility & contrast

On white

6.68
#3157B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3157B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157B3
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B3#FFFFFF#000000##FFFFFF
##3157B31.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E62B6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3157b3;
/* rgb */ color: rgb(49, 87, 179);
/* oklch */ color: oklch(48.2% 0.153 264.5);
Tailwind
colors: {
  custom: {
    50: '#7a85ca',
    500: '#3157b3',
    950: '#000000',
  },
}
SCSS
$custom: #3157b3;
$custom-light: #7a85ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b3",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 222.462,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4817,
    "c": 0.15274,
    "h": 264.5
  },
  "luminance": 0.10724
}

Semantic roles & 50–950 ramp

primary
#3157B3
secondary
#C6B07A
accent
#B448E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157B3

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

Preview Lab → · Contrast checker → · Palette generator →

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