#3157C6#3157C6

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

Color values

HEX#3157C6
RGBrgb(49, 87, 198)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 78%)
CMYKcmyk(75.3%, 56.1%, 0%, 22.4%)
CIE-LABlab(40.48, 25.92, -61.76)
CIE-LCHlch(40.48, 66.98, 292.77°)
OKLaboklab(49.64% -0.0131 -0.1781)
OKLCHoklch(49.64% 0.179 265.8)
XYZxyz(14.8643, 11.5449, 54.8601)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C6 #C6A031
analogous
#31A1C6 #3157C6 #5531C6
triadic
#3157C6 #C63157 #57C631
tetradic
#3157C6 #C631A1 #C6A031 #31C655
square
#3157C6 #C631A1 #C6A031 #31C655
split-complementary
#3157C6 #C65531 #A1C631
monochromatic
#192C64 #254195 #3157C6 #5D7CD7 #8EA4E3

Accessibility & contrast

On white

6.35
#3157C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3157C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157C6
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157C6#FFFFFF#000000##FFFFFF
##3157C61.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3157c6;
/* rgb */ color: rgb(49, 87, 198);
/* oklch */ color: oklch(49.6% 0.179 265.8);
Tailwind
colors: {
  custom: {
    50: '#7e85d8',
    500: '#3157c6',
    950: '#000000',
  },
}
SCSS
$custom: #3157c6;
$custom-light: #7e85d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c6",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 198
  },
  "hsl": {
    "h": 224.698,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49644,
    "c": 0.17862,
    "h": 265.8
  },
  "luminance": 0.11547
}

Semantic roles & 50–950 ramp

primary
#3157C6
secondary
#CEBB85
accent
#BB44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #3157C6

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

Preview Lab → · Contrast checker → · Palette generator →

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