#31519A#31519A

#31519A is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.125 H 264.2°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#31519A
RGBrgb(49, 81, 154)
HSLhsl(222, 52%, 40%)
HSVhsv(222, 68%, 60%)
CMYKcmyk(68.2%, 47.4%, 0%, 39.6%)
CIE-LABlab(35.73, 13.37, -43.43)
CIE-LCHlch(35.73, 45.44, 287.11°)
OKLaboklab(45.06% -0.0126 -0.1243)
OKLCHoklch(45.06% 0.125 264.2)
XYZxyz(10.0397, 8.8699, 31.7486)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31519A #9A7A31
analogous
#31869A #31519A #45319A
triadic
#31519A #9A3151 #519A31
tetradic
#31519A #9A3186 #9A7A31 #319A45
square
#31519A #9A3186 #9A7A31 #319A45
split-complementary
#31519A #9A4531 #869A31
monochromatic
#13203D #22396C #31519A #456BC4 #7390D2

Accessibility & contrast

On white

7.57
#31519A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#31519A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31519A
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31519A#FFFFFF#000000##FFFFFF
##31519A1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#175098
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #31519a;
/* rgb */ color: rgb(49, 81, 154);
/* oklch */ color: oklch(45.1% 0.125 264.2);
Tailwind
colors: {
  custom: {
    50: '#7581b8',
    500: '#31519a',
    950: '#000000',
  },
}
SCSS
$custom: #31519a;
$custom-light: #7581b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31519a",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 154
  },
  "hsl": {
    "h": 221.714,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45055,
    "c": 0.12494,
    "h": 264.2
  },
  "luminance": 0.08871
}

Semantic roles & 50–950 ramp

primary
#31519A
secondary
#BAA36C
accent
#B04DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31519A

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

Preview Lab → · Contrast checker → · Palette generator →

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