#3157C1#3157C1

#3157C1 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.2% C 0.172 H 265.5°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#3157C1
RGBrgb(49, 87, 193)
HSLhsl(224, 60%, 47%)
HSVhsv(224, 75%, 76%)
CMYKcmyk(74.6%, 54.9%, 0%, 24.3%)
CIE-LABlab(40.11, 24.06, -59.46)
CIE-LCHlch(40.11, 64.14, 292.03°)
OKLaboklab(49.25% -0.0135 -0.1714)
OKLCHoklch(49.25% 0.172 265.5)
XYZxyz(14.2971, 11.3180, 51.8728)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157C1 #C19B31
analogous
#319FC1 #3157C1 #5331C1
triadic
#3157C1 #C13157 #57C131
tetradic
#3157C1 #C1319F #C19B31 #31C153
square
#3157C1 #C1319F #C19B31 #31C153
split-complementary
#3157C1 #C15331 #9FC131
monochromatic
#182B5F #254190 #3157C1 #5A7BD5 #8BA2E2

Accessibility & contrast

On white

6.43
#3157C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3157C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157C1
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157C1#FFFFFF#000000##FFFFFF
##3157C11.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C5
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3157c1;
/* rgb */ color: rgb(49, 87, 193);
/* oklch */ color: oklch(49.2% 0.172 265.5);
Tailwind
colors: {
  custom: {
    50: '#7d85d4',
    500: '#3157c1',
    950: '#000000',
  },
}
SCSS
$custom: #3157c1;
$custom-light: #7d85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3157c1",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 193
  },
  "hsl": {
    "h": 224.167,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49246,
    "c": 0.1719,
    "h": 265.5
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3157C1

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

Preview Lab → · Contrast checker → · Palette generator →

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