#3157CF#3157CF

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

Color values

HEX#3157CF
RGBrgb(49, 87, 207)
HSLhsl(226, 62%, 50%)
HSVhsv(226, 76%, 81%)
CMYKcmyk(76.3%, 58%, 0%, 18.8%)
CIE-LABlab(41.17, 29.26, -65.84)
CIE-LCHlch(41.17, 72.05, 293.96°)
OKLaboklab(50.38% -0.0127 -0.1901)
OKLCHoklch(50.38% 0.191 266.2)
XYZxyz(15.9333, 11.9726, 60.4906)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157CF #CFA931
analogous
#31A6CF #3157CF #5A31CF
triadic
#3157CF #CF3157 #57CF31
tetradic
#3157CF #CF31A6 #CFA931 #31CF5A
square
#3157CF #CF31A6 #CFA931 #31CF5A
split-complementary
#3157CF #CF5A31 #A6CF31
monochromatic
#192D6C #25429E #3157CF #637FDB #94A8E6

Accessibility & contrast

On white

6.19
#3157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#3157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157CF
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157CF#FFFFFF#000000##FFFFFF
##3157CF1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005ACD
Tritanopia (blue-blind)
#00758A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3157cf;
/* rgb */ color: rgb(49, 87, 207);
/* oklch */ color: oklch(50.4% 0.191 266.2);
Tailwind
colors: {
  custom: {
    50: '#8085df',
    500: '#3157cf',
    950: '#000000',
  },
}
SCSS
$custom: #3157cf;
$custom-light: #8085df;
$custom-dark: #000000;
JSON
{
  "hex": "#3157cf",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 225.57,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50377,
    "c": 0.19055,
    "h": 266.2
  },
  "luminance": 0.11974
}

Semantic roles & 50–950 ramp

primary
#3157CF
secondary
#D1C08B
accent
#BE43E5
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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