#31477E#31477E

#31477E is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.096 H 265.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#31477E
RGBrgb(49, 71, 126)
HSLhsl(223, 44%, 34%)
HSVhsv(223, 61%, 49%)
CMYKcmyk(61.1%, 43.7%, 0%, 50.6%)
CIE-LABlab(31.03, 9.66, -33.79)
CIE-LCHlch(31.03, 35.15, 285.95°)
OKLaboklab(40.88% -0.0069 -0.0961)
OKLCHoklch(40.88% 0.096 265.9)
XYZxyz(7.2845, 6.6652, 20.6373)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31477E #7E6831
analogous
#316E7E #31477E #42317E
triadic
#31477E #7E3147 #477E31
tetradic
#31477E #7E316E #7E6831 #317E42
square
#31477E #7E316E #7E6831 #317E42
split-complementary
#31477E #7E4231 #6E7E31
monochromatic
#0F1526 #202E52 #31477E #4260AA #6681C3

Accessibility & contrast

On white

9.00
#31477E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#31477E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31477E
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31477E#FFFFFF#000000##FFFFFF
##31477E1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D80
Deuteranopia (green-blind)
#24467D
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #31477e;
/* rgb */ color: rgb(49, 71, 126);
/* oklch */ color: oklch(40.9% 0.096 265.9);
Tailwind
colors: {
  custom: {
    50: '#7079a4',
    500: '#31477e',
    950: '#000000',
  },
}
SCSS
$custom: #31477e;
$custom-light: #7079a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31477e",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 126
  },
  "hsl": {
    "h": 222.857,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40877,
    "c": 0.0964,
    "h": 265.9
  },
  "luminance": 0.06666
}

Semantic roles & 50–950 ramp

primary
#31477E
secondary
#AB9560
accent
#AF54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #31477E

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

Preview Lab → · Contrast checker → · Palette generator →

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