#3157A9#3157A9

#3157A9 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.139 H 263.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3157A9
RGBrgb(49, 87, 169)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 66%)
CMYKcmyk(71%, 48.5%, 0%, 33.7%)
CIE-LABlab(38.43, 15.04, -48.06)
CIE-LCHlch(38.43, 50.36, 287.38°)
OKLaboklab(47.44% -0.016 -0.1378)
OKLCHoklch(47.44% 0.139 263.4)
XYZxyz(11.8337, 10.3327, 38.8992)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3157A9 #A98331
analogous
#3193A9 #3157A9 #4731A9
triadic
#3157A9 #A93157 #57A931
tetradic
#3157A9 #A93193 #A98331 #31A947
square
#3157A9 #A93193 #A98331 #31A947
split-complementary
#3157A9 #A94731 #93A931
monochromatic
#15264A #233F7A #3157A9 #4C74CB #7C99D9

Accessibility & contrast

On white

6.85
#3157A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3157A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3157A9
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3157A9#FFFFFF#000000##FFFFFF
##3157A91.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AC
Deuteranopia (green-blind)
#0955A7
Tritanopia (blue-blind)
#006A78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3157a9;
/* rgb */ color: rgb(49, 87, 169);
/* oklch */ color: oklch(47.4% 0.139 263.4);
Tailwind
colors: {
  custom: {
    50: '#7885c3',
    500: '#3157a9',
    950: '#000000',
  },
}
SCSS
$custom: #3157a9;
$custom-light: #7885c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3157a9",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 169
  },
  "hsl": {
    "h": 221,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47438,
    "c": 0.13877,
    "h": 263.4
  },
  "luminance": 0.10334
}

Semantic roles & 50–950 ramp

primary
#3157A9
secondary
#C1A974
accent
#AF49DE
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3157A9

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

Preview Lab → · Contrast checker → · Palette generator →

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