#31519D#31519D

#31519D is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.129 H 264.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#31519D
RGBrgb(49, 81, 157)
HSLhsl(222, 52%, 40%)
HSVhsv(222, 69%, 62%)
CMYKcmyk(68.8%, 48.4%, 0%, 38.4%)
CIE-LABlab(35.93, 14.49, -44.92)
CIE-LCHlch(35.93, 47.20, 287.88°)
OKLaboklab(45.27% -0.0121 -0.1287)
OKLCHoklch(45.27% 0.129 264.6)
XYZxyz(10.2927, 8.9711, 33.0809)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31519D #9D7D31
analogous
#31879D #31519D #47319D
triadic
#31519D #9D3151 #519D31
tetradic
#31519D #9D3187 #9D7D31 #319D47
square
#31519D #9D3187 #9D7D31 #319D47
split-complementary
#31519D #9D4731 #879D31
monochromatic
#142140 #22396E #31519D #466CC5 #7591D4

Accessibility & contrast

On white

7.52
#31519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#31519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31519D
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31519D#FFFFFF#000000##FFFFFF
##31519D1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295AA0
Deuteranopia (green-blind)
#10509B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #31519d;
/* rgb */ color: rgb(49, 81, 157);
/* oklch */ color: oklch(45.3% 0.129 264.6);
Tailwind
colors: {
  custom: {
    50: '#7681ba',
    500: '#31519d',
    950: '#000000',
  },
}
SCSS
$custom: #31519d;
$custom-light: #7681ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31519d",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 222.222,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45268,
    "c": 0.12926,
    "h": 264.6
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#31519D
secondary
#BCA56E
accent
#B14CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31519D

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

Preview Lab → · Contrast checker → · Palette generator →

#31519D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva