#3157B2#3157B2

#3157B2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.1% C 0.151 H 264.4°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#3157B2
RGBrgb(49, 87, 178)
HSLhsl(222, 57%, 45%)
HSVhsv(222, 72%, 70%)
CMYKcmyk(72.5%, 51.1%, 0%, 30.2%)
CIE-LABlab(39.04, 18.43, -52.41)
CIE-LCHlch(39.04, 55.55, 289.37°)
OKLaboklab(48.1% -0.0148 -0.1506)
OKLCHoklch(48.1% 0.151 264.4)
XYZxyz(12.7079, 10.6824, 43.5030)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157B2 #B28C31
analogous
#3197B2 #3157B2 #4C31B2
triadic
#3157B2 #B23157 #57B231
tetradic
#3157B2 #B23197 #B28C31 #31B24C
square
#3157B2 #B23197 #B28C31 #31B24C
split-complementary
#3157B2 #B24C31 #97B231
monochromatic
#172852 #244082 #3157B2 #5176CF #819CDC

Accessibility & contrast

On white

6.69
#3157B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3157B2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157B2#FFFFFF#000000##FFFFFF
##3157B21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3157b2;
/* rgb */ color: rgb(49, 87, 178);
/* oklch */ color: oklch(48.1% 0.151 264.4);
Tailwind
colors: {
  custom: {
    50: '#7a85ca',
    500: '#3157b2',
    950: '#000000',
  },
}
SCSS
$custom: #3157b2;
$custom-light: #7a85ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3157b2",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 222.326,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.15135,
    "h": 264.4
  },
  "luminance": 0.10684
}

Semantic roles & 50–950 ramp

primary
#3157B2
secondary
#C5AF79
accent
#B348E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157B2

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

Preview Lab → · Contrast checker → · Palette generator →

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