#31579D#31579D

#31579D is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.122 H 261.5°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#31579D
RGBrgb(49, 87, 157)
HSLhsl(219, 52%, 40%)
HSVhsv(219, 69%, 62%)
CMYKcmyk(68.8%, 44.6%, 0%, 38.4%)
CIE-LABlab(37.67, 10.54, -42.13)
CIE-LCHlch(37.67, 43.43, 284.05°)
OKLaboklab(46.6% -0.018 -0.1204)
OKLCHoklch(46.6% 0.122 261.5)
XYZxyz(10.7585, 9.9026, 33.2362)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31579D #9D7731
analogous
#318D9D #31579D #41319D
triadic
#31579D #9D3157 #579D31
tetradic
#31579D #9D318D #9D7731 #319D41
square
#31579D #9D318D #9D7731 #319D41
split-complementary
#31579D #9D4131 #8D9D31
monochromatic
#142340 #223D6E #31579D #4673C5 #7596D4

Accessibility & contrast

On white

7.05
#31579D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#31579D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31579D
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31579D#FFFFFF#000000##FFFFFF
##31579D1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA0
Deuteranopia (green-blind)
#23549C
Tritanopia (blue-blind)
#006772
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #31579d;
/* rgb */ color: rgb(49, 87, 157);
/* oklch */ color: oklch(46.6% 0.122 261.5);
Tailwind
colors: {
  custom: {
    50: '#7685ba',
    500: '#31579d',
    950: '#000000',
  },
}
SCSS
$custom: #31579d;
$custom-light: #7685ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31579d",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 218.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46603,
    "c": 0.12175,
    "h": 261.5
  },
  "luminance": 0.09904
}

Semantic roles & 50–950 ramp

primary
#31579D
secondary
#BCA06E
accent
#A94CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #31579D

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

Preview Lab → · Contrast checker → · Palette generator →

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