#3157AD#3157AD

#3157AD is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.144 H 263.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3157AD
RGBrgb(49, 87, 173)
HSLhsl(222, 56%, 44%)
HSVhsv(222, 72%, 68%)
CMYKcmyk(71.7%, 49.7%, 0%, 32.2%)
CIE-LABlab(38.70, 16.55, -50.00)
CIE-LCHlch(38.70, 52.67, 288.31°)
OKLaboklab(47.73% -0.0155 -0.1435)
OKLCHoklch(47.73% 0.144 263.8)
XYZxyz(12.2150, 10.4852, 40.9072)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157AD #AD8731
analogous
#3195AD #3157AD #4931AD
triadic
#3157AD #AD3157 #57AD31
tetradic
#3157AD #AD3195 #AD8731 #31AD49
square
#3157AD #AD3195 #AD8731 #31AD49
split-complementary
#3157AD #AD4931 #95AD31
monochromatic
#16274E #233F7D #3157AD #4E75CD #7E9ADA

Accessibility & contrast

On white

6.78
#3157AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3157AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157AD
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157AD#FFFFFF#000000##FFFFFF
##3157AD1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661B0
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#006B7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3157ad;
/* rgb */ color: rgb(49, 87, 173);
/* oklch */ color: oklch(47.7% 0.144 263.8);
Tailwind
colors: {
  custom: {
    50: '#7985c6',
    500: '#3157ad',
    950: '#000000',
  },
}
SCSS
$custom: #3157ad;
$custom-light: #7985c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3157ad",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 173
  },
  "hsl": {
    "h": 221.613,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47727,
    "c": 0.14438,
    "h": 263.8
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3157AD

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

Preview Lab → · Contrast checker → · Palette generator →

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