#31529A#31529A

#31529A is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.124 H 263.7°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#31529A
RGBrgb(49, 82, 154)
HSLhsl(221, 52%, 40%)
HSVhsv(221, 68%, 60%)
CMYKcmyk(68.2%, 46.8%, 0%, 39.6%)
CIE-LABlab(36.02, 12.71, -42.96)
CIE-LCHlch(36.02, 44.80, 286.48°)
OKLaboklab(45.28% -0.0136 -0.1229)
OKLCHoklch(45.28% 0.124 263.7)
XYZxyz(10.1146, 9.0197, 31.7735)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31529A #9A7931
analogous
#31869A #31529A #45319A
triadic
#31529A #9A3152 #529A31
tetradic
#31529A #9A3186 #9A7931 #319A45
square
#31529A #9A3186 #9A7931 #319A45
split-complementary
#31529A #9A4531 #869A31
monochromatic
#13213D #22396C #31529A #456CC4 #7391D2

Accessibility & contrast

On white

7.49
#31529A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#31529A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31529A
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31529A#FFFFFF#000000##FFFFFF
##31529A1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9D
Deuteranopia (green-blind)
#1A5099
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #31529a;
/* rgb */ color: rgb(49, 82, 154);
/* oklch */ color: oklch(45.3% 0.124 263.7);
Tailwind
colors: {
  custom: {
    50: '#7582b8',
    500: '#31529a',
    950: '#000000',
  },
}
SCSS
$custom: #31529a;
$custom-light: #7582b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31529a",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 154
  },
  "hsl": {
    "h": 221.143,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45277,
    "c": 0.12367,
    "h": 263.7
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

primary
#31529A
secondary
#BAA26C
accent
#AE4DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31529A

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

Preview Lab → · Contrast checker → · Palette generator →

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