#3157AC#3157AC

#3157AC is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.143 H 263.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#3157AC
RGBrgb(49, 87, 172)
HSLhsl(221, 56%, 43%)
HSVhsv(221, 72%, 67%)
CMYKcmyk(71.5%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.63, 16.17, -49.52)
CIE-LCHlch(38.63, 52.09, 288.08°)
OKLaboklab(47.65% -0.0156 -0.1421)
OKLCHoklch(47.65% 0.143 263.7)
XYZxyz(12.1186, 10.4467, 40.3995)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AC #AC8631
analogous
#3194AC #3157AC #4831AC
triadic
#3157AC #AC3157 #57AC31
tetradic
#3157AC #AC3194 #AC8631 #31AC48
square
#3157AC #AC3194 #AC8631 #31AC48
split-complementary
#3157AC #AC4831 #94AC31
monochromatic
#16274D #233F7C #3157AC #4E75CC #7D9ADA

Accessibility & contrast

On white

6.80
#3157AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#3157AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AC#FFFFFF#000000##FFFFFF
##3157AC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#0056AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157ac;
/* rgb */ color: rgb(49, 87, 172);
/* oklch */ color: oklch(47.7% 0.143 263.7);
Tailwind
colors: {
  custom: {
    50: '#7985c5',
    500: '#3157ac',
    950: '#000000',
  },
}
SCSS
$custom: #3157ac;
$custom-light: #7985c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3157ac",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 221.463,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47654,
    "c": 0.14298,
    "h": 263.7
  },
  "luminance": 0.10448
}

Semantic roles & 50–950 ramp

primary
#3157AC
secondary
#C3AB76
accent
#B149DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157AC

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

Preview Lab → · Contrast checker → · Palette generator →

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