#31549E#31549E

#31549E is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.0% C 0.127 H 263.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#31549E
RGBrgb(49, 84, 158)
HSLhsl(221, 53%, 41%)
HSVhsv(221, 69%, 62%)
CMYKcmyk(69%, 46.8%, 0%, 38%)
CIE-LABlab(36.86, 12.89, -44.03)
CIE-LCHlch(36.86, 45.88, 286.31°)
OKLaboklab(46% -0.0149 -0.126)
OKLCHoklch(46% 0.127 263.3)
XYZxyz(10.6063, 9.4612, 33.6084)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31549E #9E7B31
analogous
#318A9E #31549E #44319E
triadic
#31549E #9E3154 #549E31
tetradic
#31549E #9E318A #9E7B31 #319E44
square
#31549E #9E318A #9E7B31 #319E44
split-complementary
#31549E #9E4431 #8A9E31
monochromatic
#142241 #233B6F #31549E #466FC6 #7594D4

Accessibility & contrast

On white

7.26
#31549E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#31549E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31549E
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31549E#FFFFFF#000000##FFFFFF
##31549E1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5CA1
Deuteranopia (green-blind)
#19529C
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #31549e;
/* rgb */ color: rgb(49, 84, 158);
/* oklch */ color: oklch(46.0% 0.127 263.3);
Tailwind
colors: {
  custom: {
    50: '#7683bb',
    500: '#31549e',
    950: '#000000',
  },
}
SCSS
$custom: #31549e;
$custom-light: #7683bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31549e",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 158
  },
  "hsl": {
    "h": 220.734,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.1269,
    "h": 263.3
  },
  "luminance": 0.09462
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31549E

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

Preview Lab → · Contrast checker → · Palette generator →

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