#3157AF#3157AF

#3157AF is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.9% C 0.147 H 264.1°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#3157AF
RGBrgb(49, 87, 175)
HSLhsl(222, 56%, 44%)
HSVhsv(222, 72%, 69%)
CMYKcmyk(72%, 50.3%, 0%, 31.4%)
CIE-LABlab(38.83, 17.30, -50.97)
CIE-LCHlch(38.83, 53.83, 288.75°)
OKLaboklab(47.87% -0.0152 -0.1464)
OKLCHoklch(47.87% 0.147 264.1)
XYZxyz(12.4099, 10.5632, 41.9340)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AF #AF8931
analogous
#3196AF #3157AF #4A31AF
triadic
#3157AF #AF3157 #57AF31
tetradic
#3157AF #AF3196 #AF8931 #31AF4A
square
#3157AF #AF3196 #AF8931 #31AF4A
split-complementary
#3157AF #AF4A31 #96AF31
monochromatic
#16274F #243F7F #3157AF #4F76CE #7F9BDB

Accessibility & contrast

On white

6.75
#3157AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3157AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AF
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AF#FFFFFF#000000##FFFFFF
##3157AF1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157af;
/* rgb */ color: rgb(49, 87, 175);
/* oklch */ color: oklch(47.9% 0.147 264.1);
Tailwind
colors: {
  custom: {
    50: '#7985c7',
    500: '#3157af',
    950: '#000000',
  },
}
SCSS
$custom: #3157af;
$custom-light: #7985c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3157af",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 221.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47873,
    "c": 0.14718,
    "h": 264.1
  },
  "luminance": 0.10565
}

Semantic roles & 50–950 ramp

primary
#3157AF
secondary
#C4AD78
accent
#B248E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3157AF

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

Preview Lab → · Contrast checker → · Palette generator →

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