#3157D0#3157D0

#3157D0 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.5% C 0.192 H 266.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#3157D0
RGBrgb(49, 87, 208)
HSLhsl(226, 63%, 50%)
HSVhsv(226, 76%, 82%)
CMYKcmyk(76.4%, 58.2%, 0%, 18.4%)
CIE-LABlab(41.25, 29.63, -66.29)
CIE-LCHlch(41.25, 72.61, 294.08°)
OKLaboklab(50.46% -0.0127 -0.1914)
OKLCHoklch(50.46% 0.192 266.2)
XYZxyz(16.0560, 12.0216, 61.1365)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157D0 #D0AA31
analogous
#31A7D0 #3157D0 #5A31D0
triadic
#3157D0 #D03157 #57D031
tetradic
#3157D0 #D031A7 #D0AA31 #31D05A
square
#3157D0 #D031A7 #D0AA31 #31D05A
split-complementary
#3157D0 #D05A31 #A7D031
monochromatic
#192D6E #24429F #3157D0 #6380DB #95A8E7

Accessibility & contrast

On white

6.17
#3157D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#3157D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157D0
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157D0#FFFFFF#000000##FFFFFF
##3157D01.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D4
Deuteranopia (green-blind)
#005ACE
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3157d0;
/* rgb */ color: rgb(49, 87, 208);
/* oklch */ color: oklch(50.5% 0.192 266.2);
Tailwind
colors: {
  custom: {
    50: '#8185df',
    500: '#3157d0',
    950: '#000000',
  },
}
SCSS
$custom: #3157d0;
$custom-light: #8185df;
$custom-dark: #000000;
JSON
{
  "hex": "#3157d0",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 208
  },
  "hsl": {
    "h": 225.66,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.19186,
    "h": 266.2
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#3157D0
secondary
#D2C18B
accent
#BF42E6
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3157D0

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

Preview Lab → · Contrast checker → · Palette generator →

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