#3157D4#3157D4

#3157D4 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.197 H 266.3°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#3157D4
RGBrgb(49, 87, 212)
HSLhsl(226, 65%, 51%)
HSVhsv(226, 77%, 83%)
CMYKcmyk(76.9%, 59%, 0%, 16.9%)
CIE-LABlab(41.57, 31.10, -68.08)
CIE-LCHlch(41.57, 74.84, 294.56°)
OKLaboklab(50.79% -0.0126 -0.1967)
OKLCHoklch(50.79% 0.197 266.3)
XYZxyz(16.5543, 12.2209, 63.7610)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157D4 #D4AE31
analogous
#31A8D4 #3157D4 #5C31D4
triadic
#3157D4 #D43157 #57D431
tetradic
#3157D4 #D431A8 #D4AE31 #31D45C
square
#3157D4 #D431A8 #D4AE31 #31D45C
split-complementary
#3157D4 #D45C31 #A8D431
monochromatic
#182D73 #2341A5 #3157D4 #6480DF #96AAE9

Accessibility & contrast

On white

6.10
#3157D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#3157D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157D4
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157D4#FFFFFF#000000##FFFFFF
##3157D41.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#00778D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3157d4;
/* rgb */ color: rgb(49, 87, 212);
/* oklch */ color: oklch(50.8% 0.197 266.3);
Tailwind
colors: {
  custom: {
    50: '#8286e2',
    500: '#3157d4',
    950: '#000000',
  },
}
SCSS
$custom: #3157d4;
$custom-light: #8286e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3157d4",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 212
  },
  "hsl": {
    "h": 226.012,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50793,
    "c": 0.19708,
    "h": 266.3
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#3157D4
secondary
#D4C48C
accent
#C13FE8
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B15
muted
#7D7C84

Preview Lab

Preview with #3157D4

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

Preview Lab → · Contrast checker → · Palette generator →

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