#3157C4#3157C4

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

Color values

HEX#3157C4
RGBrgb(49, 87, 196)
HSLhsl(224, 60%, 48%)
HSVhsv(224, 75%, 77%)
CMYKcmyk(75%, 55.6%, 0%, 23.1%)
CIE-LABlab(40.33, 25.17, -60.84)
CIE-LCHlch(40.33, 65.85, 292.48°)
OKLaboklab(49.48% -0.0133 -0.1754)
OKLCHoklch(49.48% 0.176 265.7)
XYZxyz(14.6351, 11.4533, 53.6532)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C4 #C49E31
analogous
#31A0C4 #3157C4 #5531C4
triadic
#3157C4 #C43157 #57C431
tetradic
#3157C4 #C431A0 #C49E31 #31C455
square
#3157C4 #C431A0 #C49E31 #31C455
split-complementary
#3157C4 #C45531 #A0C431
monochromatic
#192C62 #254193 #3157C4 #5C7CD6 #8DA3E2

Accessibility & contrast

On white

6.38
#3157C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#3157C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157C4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157C4#FFFFFF#000000##FFFFFF
##3157C41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3157c4;
/* rgb */ color: rgb(49, 87, 196);
/* oklch */ color: oklch(49.5% 0.176 265.7);
Tailwind
colors: {
  custom: {
    50: '#7e85d7',
    500: '#3157c4',
    950: '#000000',
  },
}
SCSS
$custom: #3157c4;
$custom-light: #7e85d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c4",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 196
  },
  "hsl": {
    "h": 224.49,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49484,
    "c": 0.17594,
    "h": 265.7
  },
  "luminance": 0.11455
}

Semantic roles & 50–950 ramp

primary
#3157C4
secondary
#CDBA84
accent
#BA45E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157C4

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

Preview Lab → · Contrast checker → · Palette generator →

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