#31559E#31559E

#31559E is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.2% C 0.126 H 262.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#31559E
RGBrgb(49, 85, 158)
HSLhsl(220, 53%, 41%)
HSVhsv(220, 69%, 62%)
CMYKcmyk(69%, 46.2%, 0%, 38%)
CIE-LABlab(37.15, 12.23, -43.57)
CIE-LCHlch(37.15, 45.25, 285.68°)
OKLaboklab(46.22% -0.0159 -0.1246)
OKLCHoklch(46.22% 0.126 262.7)
XYZxyz(10.6845, 9.6175, 33.6344)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31559E #9E7A31
analogous
#318C9E #31559E #43319E
triadic
#31559E #9E3155 #559E31
tetradic
#31559E #9E318C #9E7A31 #319E43
square
#31559E #9E318C #9E7A31 #319E43
split-complementary
#31559E #9E4331 #8C9E31
monochromatic
#142341 #233C6F #31559E #4670C6 #7595D4

Accessibility & contrast

On white

7.18
#31559E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#31559E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31559E
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31559E#FFFFFF#000000##FFFFFF
##31559E1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315DA1
Deuteranopia (green-blind)
#1C539D
Tritanopia (blue-blind)
#006672
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #31559e;
/* rgb */ color: rgb(49, 85, 158);
/* oklch */ color: oklch(46.2% 0.126 262.7);
Tailwind
colors: {
  custom: {
    50: '#7684bb',
    500: '#31559e',
    950: '#000000',
  },
}
SCSS
$custom: #31559e;
$custom-light: #7684bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31559e",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 158
  },
  "hsl": {
    "h": 220.183,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46223,
    "c": 0.12565,
    "h": 262.7
  },
  "luminance": 0.09619
}

Semantic roles & 50–950 ramp

primary
#31559E
secondary
#BCA36E
accent
#AC4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31559E

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

Preview Lab → · Contrast checker → · Palette generator →

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