#31476E#31476E

#31476E is a dark, moderate blue. Relative luminance 0.063; OKLCH L 39.9% C 0.072 H 261.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#31476E
RGBrgb(49, 71, 110)
HSLhsl(218, 38%, 31%)
HSVhsv(218, 55%, 43%)
CMYKcmyk(55.5%, 35.5%, 0%, 56.9%)
CIE-LABlab(30.12, 3.91, -25.20)
CIE-LCHlch(30.12, 25.50, 278.83°)
OKLaboklab(39.87% -0.0109 -0.071)
OKLCHoklch(39.87% 0.072 261.3)
XYZxyz(6.3334, 6.2848, 15.6282)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31476E #6E5831
analogous
#31656E #31476E #39316E
triadic
#31476E #6E3147 #476E31
tetradic
#31476E #6E3165 #6E5831 #316E39
square
#31476E #6E3165 #6E5831 #316E39
split-complementary
#31476E #6E3931 #656E31
monochromatic
#0B1019 #1E2C44 #31476E #446298 #6180B9

Accessibility & contrast

On white

9.30
#31476E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#31476E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31476E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31476E#FFFFFF#000000##FFFFFF
##31476E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384A70
Deuteranopia (green-blind)
#30446D
Tritanopia (blue-blind)
#125055
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31476e;
/* rgb */ color: rgb(49, 71, 110);
/* oklch */ color: oklch(39.9% 0.072 261.3);
Tailwind
colors: {
  custom: {
    50: '#6e7a98',
    500: '#31476e',
    950: '#000000',
  },
}
SCSS
$custom: #31476e;
$custom-light: #6e7a98;
$custom-dark: #000000;
JSON
{
  "hex": "#31476e",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 110
  },
  "hsl": {
    "h": 218.361,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39873,
    "c": 0.07186,
    "h": 261.3
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#31476E
secondary
#9F875C
accent
#A459CE
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31476E

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

Preview Lab → · Contrast checker → · Palette generator →

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