#31579A#31579A

#31579A is a mid, moderate blue. Relative luminance 0.098; OKLCH L 46.4% C 0.117 H 260.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#31579A
RGBrgb(49, 87, 154)
HSLhsl(218, 52%, 40%)
HSVhsv(218, 68%, 60%)
CMYKcmyk(68.2%, 43.5%, 0%, 39.6%)
CIE-LABlab(37.48, 9.42, -40.63)
CIE-LCHlch(37.48, 41.70, 283.06°)
OKLaboklab(46.4% -0.0186 -0.116)
OKLCHoklch(46.4% 0.117 260.9)
XYZxyz(10.5055, 9.8014, 31.9038)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31579A #9A7431
analogous
#318B9A #31579A #40319A
triadic
#31579A #9A3157 #579A31
tetradic
#31579A #9A318B #9A7431 #319A40
square
#31579A #9A318B #9A7431 #319A40
split-complementary
#31579A #9A4031 #8B9A31
monochromatic
#13233D #223D6C #31579A #4573C4 #7396D2

Accessibility & contrast

On white

7.09
#31579A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#31579A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31579A
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31579A#FFFFFF#000000##FFFFFF
##31579A1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9D
Deuteranopia (green-blind)
#265499
Tritanopia (blue-blind)
#006671
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #31579a;
/* rgb */ color: rgb(49, 87, 154);
/* oklch */ color: oklch(46.4% 0.117 260.9);
Tailwind
colors: {
  custom: {
    50: '#7585b8',
    500: '#31579a',
    950: '#000000',
  },
}
SCSS
$custom: #31579a;
$custom-light: #7585b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31579a",
  "rgb": {
    "r": 49,
    "g": 87,
    "b": 154
  },
  "hsl": {
    "h": 218.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46402,
    "c": 0.11746,
    "h": 260.9
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#31579A
secondary
#BA9E6C
accent
#A84DDB
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #31579A

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

Preview Lab → · Contrast checker → · Palette generator →

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