#3157A4#3157A4

#3157A4 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.1% C 0.132 H 262.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#3157A4
RGBrgb(49, 87, 164)
HSLhsl(220, 54%, 42%)
HSVhsv(220, 70%, 64%)
CMYKcmyk(70.1%, 47%, 0%, 35.7%)
CIE-LABlab(38.11, 13.17, -45.61)
CIE-LCHlch(38.11, 47.47, 286.10°)
OKLaboklab(47.08% -0.0168 -0.1306)
OKLCHoklch(47.08% 0.132 262.7)
XYZxyz(11.3733, 10.1485, 36.4742)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157A4 #A47E31
analogous
#3191A4 #3157A4 #4531A4
triadic
#3157A4 #A43157 #57A431
tetradic
#3157A4 #A43191 #A47E31 #31A445
square
#3157A4 #A43191 #A47E31 #31A445
split-complementary
#3157A4 #A44531 #91A431
monochromatic
#152546 #233E75 #3157A4 #4974C9 #7998D7

Accessibility & contrast

On white

6.93
#3157A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3157A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157A4
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157A4#FFFFFF#000000##FFFFFF
##3157A41.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5FA7
Deuteranopia (green-blind)
#1755A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3157a4;
/* rgb */ color: rgb(49, 87, 164);
/* oklch */ color: oklch(47.1% 0.132 262.7);
Tailwind
colors: {
  custom: {
    50: '#7785bf',
    500: '#3157a4',
    950: '#000000',
  },
}
SCSS
$custom: #3157a4;
$custom-light: #7785bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3157a4",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 220.174,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47084,
    "c": 0.13171,
    "h": 262.7
  },
  "luminance": 0.1015
}

Semantic roles & 50–950 ramp

primary
#3157A4
secondary
#BFA672
accent
#AD4ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3157A4

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

Preview Lab → · Contrast checker → · Palette generator →

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