#3157A2#3157A2

#3157A2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 46.9% C 0.129 H 262.4°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#3157A2
RGBrgb(49, 87, 162)
HSLhsl(220, 54%, 41%)
HSVhsv(220, 70%, 64%)
CMYKcmyk(69.8%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.98, 12.41, -44.62)
CIE-LCHlch(37.98, 46.32, 285.55°)
OKLaboklab(46.95% -0.0171 -0.1277)
OKLCHoklch(46.95% 0.129 262.4)
XYZxyz(11.1941, 10.0769, 35.5305)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157A2 #A27C31
analogous
#3190A2 #3157A2 #4431A2
triadic
#3157A2 #A23157 #57A231
tetradic
#3157A2 #A23190 #A27C31 #31A244
square
#3157A2 #A23190 #A27C31 #31A244
split-complementary
#3157A2 #A24431 #90A231
monochromatic
#152544 #233E73 #3157A2 #4873C8 #7797D6

Accessibility & contrast

On white

6.96
#3157A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3157A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157A2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157A2#FFFFFF#000000##FFFFFF
##3157A21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#1B55A0
Tritanopia (blue-blind)
#006874
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3157a2;
/* rgb */ color: rgb(49, 87, 162);
/* oklch */ color: oklch(46.9% 0.129 262.4);
Tailwind
colors: {
  custom: {
    50: '#7785be',
    500: '#3157a2',
    950: '#000000',
  },
}
SCSS
$custom: #3157a2;
$custom-light: #7785be;
$custom-dark: #000000;
JSON
{
  "hex": "#3157a2",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 219.823,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46945,
    "c": 0.12886,
    "h": 262.4
  },
  "luminance": 0.10078
}

Semantic roles & 50–950 ramp

primary
#3157A2
secondary
#BEA471
accent
#AC4BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3157A2

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

Preview Lab → · Contrast checker → · Palette generator →

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