#31529F#31529F

#31529F is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.131 H 264.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#31529F
RGBrgb(49, 82, 159)
HSLhsl(222, 53%, 41%)
HSVhsv(222, 69%, 62%)
CMYKcmyk(69.2%, 48.4%, 0%, 37.6%)
CIE-LABlab(36.35, 14.58, -45.45)
CIE-LCHlch(36.35, 47.73, 287.79°)
OKLaboklab(45.63% -0.0128 -0.1302)
OKLCHoklch(45.63% 0.131 264.4)
XYZxyz(10.5397, 9.1897, 34.0125)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31529F #9F7E31
analogous
#31899F #31529F #47319F
triadic
#31529F #9F3152 #529F31
tetradic
#31529F #9F3189 #9F7E31 #319F47
square
#31529F #9F3189 #9F7E31 #319F47
split-complementary
#31529F #9F4731 #899F31
monochromatic
#142241 #233A70 #31529F #476DC6 #7692D5

Accessibility & contrast

On white

7.40
#31529F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#31529F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31529F
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31529F#FFFFFF#000000##FFFFFF
##31529F1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295BA2
Deuteranopia (green-blind)
#0F519D
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #31529f;
/* rgb */ color: rgb(49, 82, 159);
/* oklch */ color: oklch(45.6% 0.131 264.4);
Tailwind
colors: {
  custom: {
    50: '#7682bc',
    500: '#31529f',
    950: '#000000',
  },
}
SCSS
$custom: #31529f;
$custom-light: #7682bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31529f",
  "rgb": {
    "r": 49,
    "g": 82,
    "b": 159
  },
  "hsl": {
    "h": 222,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45631,
    "c": 0.13086,
    "h": 264.4
  },
  "luminance": 0.09191
}

Semantic roles & 50–950 ramp

primary
#31529F
secondary
#BDA56F
accent
#B14CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31529F

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

Preview Lab → · Contrast checker → · Palette generator →

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