#3157C5#3157C5

#3157C5 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.6% C 0.177 H 265.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#3157C5
RGBrgb(49, 87, 197)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 77%)
CMYKcmyk(75.1%, 55.8%, 0%, 22.7%)
CIE-LABlab(40.41, 25.55, -61.30)
CIE-LCHlch(40.41, 66.41, 292.62°)
OKLaboklab(49.56% -0.0132 -0.1768)
OKLCHoklch(49.56% 0.177 265.7)
XYZxyz(14.7493, 11.4989, 54.2547)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C5 #C59F31
analogous
#31A1C5 #3157C5 #5531C5
triadic
#3157C5 #C53157 #57C531
tetradic
#3157C5 #C531A1 #C59F31 #31C555
square
#3157C5 #C531A1 #C59F31 #31C555
split-complementary
#3157C5 #C55531 #A1C531
monochromatic
#192C63 #254194 #3157C5 #5D7CD7 #8EA3E3

Accessibility & contrast

On white

6.36
#3157C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#3157C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157C5
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157C5#FFFFFF#000000##FFFFFF
##3157C51.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#0059C3
Tritanopia (blue-blind)
#007285
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3157c5;
/* rgb */ color: rgb(49, 87, 197);
/* oklch */ color: oklch(49.6% 0.177 265.7);
Tailwind
colors: {
  custom: {
    50: '#7e85d7',
    500: '#3157c5',
    950: '#000000',
  },
}
SCSS
$custom: #3157c5;
$custom-light: #7e85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c5",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 197
  },
  "hsl": {
    "h": 224.595,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49564,
    "c": 0.17728,
    "h": 265.7
  },
  "luminance": 0.11501
}

Semantic roles & 50–950 ramp

primary
#3157C5
secondary
#CDBB85
accent
#BB44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157C5

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

Preview Lab → · Contrast checker → · Palette generator →

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