#31579E#31579E

#31579E is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.123 H 261.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#31579E
RGBrgb(49, 87, 158)
HSLhsl(219, 53%, 41%)
HSVhsv(219, 69%, 62%)
CMYKcmyk(69%, 44.9%, 0%, 38%)
CIE-LABlab(37.73, 10.92, -42.63)
CIE-LCHlch(37.73, 44.01, 284.36°)
OKLaboklab(46.67% -0.0179 -0.1219)
OKLCHoklch(46.67% 0.123 261.7)
XYZxyz(10.8442, 9.9369, 33.6876)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31579E #9E7831
analogous
#318D9E #31579E #42319E
triadic
#31579E #9E3157 #579E31
tetradic
#31579E #9E318D #9E7831 #319E42
square
#31579E #9E318D #9E7831 #319E42
split-complementary
#31579E #9E4231 #8D9E31
monochromatic
#142441 #233D6F #31579E #4673C6 #7596D4

Accessibility & contrast

On white

7.03
#31579E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#31579E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31579E
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31579E#FFFFFF#000000##FFFFFF
##31579E1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA1
Deuteranopia (green-blind)
#21549D
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #31579e;
/* rgb */ color: rgb(49, 87, 158);
/* oklch */ color: oklch(46.7% 0.123 261.7);
Tailwind
colors: {
  custom: {
    50: '#7685bb',
    500: '#31579e',
    950: '#000000',
  },
}
SCSS
$custom: #31579e;
$custom-light: #7685bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31579e",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 158
  },
  "hsl": {
    "h": 219.083,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46671,
    "c": 0.12317,
    "h": 261.7
  },
  "luminance": 0.09938
}

Semantic roles & 50–950 ramp

primary
#31579E
secondary
#BCA16E
accent
#AA4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #31579E

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

Preview Lab → · Contrast checker → · Palette generator →

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