#31579F#31579F

#31579F is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.7% C 0.125 H 261.8°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#31579F
RGBrgb(49, 87, 159)
HSLhsl(219, 53%, 41%)
HSVhsv(219, 69%, 62%)
CMYKcmyk(69.2%, 45.3%, 0%, 37.6%)
CIE-LABlab(37.79, 11.29, -43.13)
CIE-LCHlch(37.79, 44.59, 284.67°)
OKLaboklab(46.74% -0.0177 -0.1233)
OKLCHoklch(46.74% 0.125 261.8)
XYZxyz(10.9306, 9.9715, 34.1428)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31579F #9F7931
analogous
#318E9F #31579F #42319F
triadic
#31579F #9F3157 #579F31
tetradic
#31579F #9F318E #9F7931 #319F42
square
#31579F #9F318E #9F7931 #319F42
split-complementary
#31579F #9F4231 #8E9F31
monochromatic
#142441 #233D70 #31579F #4773C6 #7697D5

Accessibility & contrast

On white

7.01
#31579F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31579F
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31579F#FFFFFF#000000##FFFFFF
##31579F1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA2
Deuteranopia (green-blind)
#20549E
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #31579f;
/* rgb */ color: rgb(49, 87, 159);
/* oklch */ color: oklch(46.7% 0.125 261.8);
Tailwind
colors: {
  custom: {
    50: '#7685bc',
    500: '#31579f',
    950: '#000000',
  },
}
SCSS
$custom: #31579f;
$custom-light: #7685bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31579f",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 219.273,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.1246,
    "h": 261.8
  },
  "luminance": 0.09973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31579F

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

Preview Lab → · Contrast checker → · Palette generator →

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