#3157BE#3157BE

#3157BE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.0% C 0.168 H 265.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#3157BE
RGBrgb(49, 87, 190)
HSLhsl(224, 59%, 47%)
HSVhsv(224, 74%, 75%)
CMYKcmyk(74.2%, 54.2%, 0%, 25.5%)
CIE-LABlab(39.89, 22.93, -58.07)
CIE-LCHlch(39.89, 62.43, 291.55°)
OKLaboklab(49.01% -0.0137 -0.1673)
OKLCHoklch(49.01% 0.168 265.3)
XYZxyz(13.9658, 11.1855, 50.1282)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157BE #BE9831
analogous
#319EBE #3157BE #5231BE
triadic
#3157BE #BE3157 #57BE31
tetradic
#3157BE #BE319E #BE9831 #31BE52
square
#3157BE #BE319E #BE9831 #31BE52
split-complementary
#3157BE #BE5231 #9EBE31
monochromatic
#182A5D #24418D #3157BE #587AD4 #89A0E1

Accessibility & contrast

On white

6.49
#3157BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3157BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157BE
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157BE#FFFFFF#000000##FFFFFF
##3157BE1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#0058BC
Tritanopia (blue-blind)
#007082
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3157be;
/* rgb */ color: rgb(49, 87, 190);
/* oklch */ color: oklch(49.0% 0.168 265.3);
Tailwind
colors: {
  custom: {
    50: '#7d85d2',
    500: '#3157be',
    950: '#000000',
  },
}
SCSS
$custom: #3157be;
$custom-light: #7d85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3157be",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 223.83,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49011,
    "c": 0.16784,
    "h": 265.3
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#3157BE
secondary
#CAB680
accent
#B846E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3157BE

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

Preview Lab → · Contrast checker → · Palette generator →

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