#31559F#31559F

#31559F is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.3% C 0.127 H 262.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#31559F
RGBrgb(49, 85, 159)
HSLhsl(220, 53%, 41%)
HSVhsv(220, 69%, 62%)
CMYKcmyk(69.2%, 46.5%, 0%, 37.6%)
CIE-LABlab(37.21, 12.60, -44.06)
CIE-LCHlch(37.21, 45.83, 285.96°)
OKLaboklab(46.29% -0.0157 -0.1261)
OKLCHoklch(46.29% 0.127 262.9)
XYZxyz(10.7709, 9.6521, 34.0896)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31559F #9F7B31
analogous
#318C9F #31559F #44319F
triadic
#31559F #9F3155 #559F31
tetradic
#31559F #9F318C #9F7B31 #319F44
square
#31559F #9F318C #9F7B31 #319F44
split-complementary
#31559F #9F4431 #8C9F31
monochromatic
#142341 #233C70 #31559F #4771C6 #7695D5

Accessibility & contrast

On white

7.17
#31559F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#31559F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31559F
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31559F#FFFFFF#000000##FFFFFF
##31559F1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#1A539D
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #31559f;
/* rgb */ color: rgb(49, 85, 159);
/* oklch */ color: oklch(46.3% 0.127 262.9);
Tailwind
colors: {
  custom: {
    50: '#7684bc',
    500: '#31559f',
    950: '#000000',
  },
}
SCSS
$custom: #31559f;
$custom-light: #7684bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31559f",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 159
  },
  "hsl": {
    "h": 220.364,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46292,
    "c": 0.12709,
    "h": 262.9
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#31559F
secondary
#BDA36F
accent
#AD4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31559F

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

Preview Lab → · Contrast checker → · Palette generator →

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