#31549F#31549F

#31549F is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.1% C 0.128 H 263.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#31549F
RGBrgb(49, 84, 159)
HSLhsl(221, 53%, 41%)
HSVhsv(221, 69%, 62%)
CMYKcmyk(69.2%, 47.2%, 0%, 37.6%)
CIE-LABlab(36.92, 13.26, -44.53)
CIE-LCHlch(36.92, 46.46, 286.58°)
OKLaboklab(46.07% -0.0147 -0.1275)
OKLCHoklch(46.07% 0.128 263.4)
XYZxyz(10.6927, 9.4958, 34.0635)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31549F #9F7C31
analogous
#318B9F #31549F #45319F
triadic
#31549F #9F3154 #549F31
tetradic
#31549F #9F318B #9F7C31 #319F45
square
#31549F #9F318B #9F7C31 #319F45
split-complementary
#31549F #9F4531 #8B9F31
monochromatic
#142341 #233B70 #31549F #476FC6 #7694D5

Accessibility & contrast

On white

7.24
#31549F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#31549F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31549F
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31549F#FFFFFF#000000##FFFFFF
##31549F1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA2
Deuteranopia (green-blind)
#17529D
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #31549f;
/* rgb */ color: rgb(49, 84, 159);
/* oklch */ color: oklch(46.1% 0.128 263.4);
Tailwind
colors: {
  custom: {
    50: '#7683bc',
    500: '#31549f',
    950: '#000000',
  },
}
SCSS
$custom: #31549f;
$custom-light: #7683bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31549f",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 159
  },
  "hsl": {
    "h": 220.909,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46071,
    "c": 0.12833,
    "h": 263.4
  },
  "luminance": 0.09497
}

Semantic roles & 50–950 ramp

primary
#31549F
secondary
#BDA46F
accent
#AE4CDC
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31549F

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

Preview Lab → · Contrast checker → · Palette generator →

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