#31579C#31579C

#31579C is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.5% C 0.120 H 261.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#31579C
RGBrgb(49, 87, 156)
HSLhsl(219, 52%, 40%)
HSVhsv(219, 69%, 61%)
CMYKcmyk(68.6%, 44.2%, 0%, 38.8%)
CIE-LABlab(37.61, 10.17, -41.63)
CIE-LCHlch(37.61, 42.86, 283.72°)
OKLaboklab(46.54% -0.0182 -0.1189)
OKLCHoklch(46.54% 0.12 261.3)
XYZxyz(10.6734, 9.8686, 32.7884)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31579C #9C7631
analogous
#318C9C #31579C #41319C
triadic
#31579C #9C3157 #579C31
tetradic
#31579C #9C318C #9C7631 #319C41
square
#31579C #9C318C #9C7631 #319C41
split-complementary
#31579C #9C4131 #8C9C31
monochromatic
#14233F #223D6D #31579C #4573C5 #7496D3

Accessibility & contrast

On white

7.06
#31579C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#31579C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31579C
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31579C#FFFFFF#000000##FFFFFF
##31579C1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365E9F
Deuteranopia (green-blind)
#24549B
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #31579c;
/* rgb */ color: rgb(49, 87, 156);
/* oklch */ color: oklch(46.5% 0.120 261.3);
Tailwind
colors: {
  custom: {
    50: '#7585ba',
    500: '#31579c',
    950: '#000000',
  },
}
SCSS
$custom: #31579c;
$custom-light: #7585ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31579c",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 156
  },
  "hsl": {
    "h": 218.692,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.12032,
    "h": 261.3
  },
  "luminance": 0.0987
}

Semantic roles & 50–950 ramp

primary
#31579C
secondary
#BBA06D
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31579C

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

Preview Lab → · Contrast checker → · Palette generator →

#31579C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva