#3157C2#3157C2

#3157C2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.3% C 0.173 H 265.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#3157C2
RGBrgb(49, 87, 194)
HSLhsl(224, 60%, 48%)
HSVhsv(224, 75%, 76%)
CMYKcmyk(74.7%, 55.2%, 0%, 23.9%)
CIE-LABlab(40.18, 24.43, -59.92)
CIE-LCHlch(40.18, 64.71, 292.18°)
OKLaboklab(49.33% -0.0134 -0.1727)
OKLCHoklch(49.33% 0.173 265.6)
XYZxyz(14.4090, 11.3628, 52.4623)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C2 #C29C31
analogous
#319FC2 #3157C2 #5431C2
triadic
#3157C2 #C23157 #57C231
tetradic
#3157C2 #C2319F #C29C31 #31C254
square
#3157C2 #C2319F #C29C31 #31C254
split-complementary
#3157C2 #C25431 #9FC231
monochromatic
#182B60 #254191 #3157C2 #5B7BD6 #8CA2E2

Accessibility & contrast

On white

6.42
#3157C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#3157C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157C2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157C2#FFFFFF#000000##FFFFFF
##3157C21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3157c2;
/* rgb */ color: rgb(49, 87, 194);
/* oklch */ color: oklch(49.3% 0.173 265.6);
Tailwind
colors: {
  custom: {
    50: '#7d85d5',
    500: '#3157c2',
    950: '#000000',
  },
}
SCSS
$custom: #3157c2;
$custom-light: #7d85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c2",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 194
  },
  "hsl": {
    "h": 224.276,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49325,
    "c": 0.17325,
    "h": 265.6
  },
  "luminance": 0.11364
}

Semantic roles & 50–950 ramp

primary
#3157C2
secondary
#CCB983
accent
#B945E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157C2

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

Preview Lab → · Contrast checker → · Palette generator →

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