#31476F#31476F

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

Color values

HEX#31476F
RGBrgb(49, 71, 111)
HSLhsl(219, 39%, 31%)
HSVhsv(219, 56%, 44%)
CMYKcmyk(55.9%, 36%, 0%, 56.5%)
CIE-LABlab(30.17, 4.27, -25.75)
CIE-LCHlch(30.17, 26.10, 279.41°)
OKLaboklab(39.93% -0.0106 -0.0726)
OKLCHoklch(39.93% 0.073 261.7)
XYZxyz(6.3881, 6.3067, 15.9165)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31476F #6F5931
analogous
#31666F #31476F #3A316F
triadic
#31476F #6F3147 #476F31
tetradic
#31476F #6F3166 #6F5931 #316F3A
square
#31476F #6F3166 #6F5931 #316F3A
split-complementary
#31476F #6F3A31 #666F31
monochromatic
#0C111A #1E2C45 #31476F #446299 #6180B9

Accessibility & contrast

On white

9.29
#31476F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31476F
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31476F#FFFFFF#000000##FFFFFF
##31476F1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374A71
Deuteranopia (green-blind)
#30446E
Tritanopia (blue-blind)
#105056
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31476f;
/* rgb */ color: rgb(49, 71, 111);
/* oklch */ color: oklch(39.9% 0.073 261.7);
Tailwind
colors: {
  custom: {
    50: '#6e7a98',
    500: '#31476f',
    950: '#000000',
  },
}
SCSS
$custom: #31476f;
$custom-light: #6e7a98;
$custom-dark: #000000;
JSON
{
  "hex": "#31476f",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 111
  },
  "hsl": {
    "h": 218.71,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.0734,
    "h": 261.7
  },
  "luminance": 0.06307
}

Semantic roles & 50–950 ramp

primary
#31476F
secondary
#A0885C
accent
#A559CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31476F

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

Preview Lab → · Contrast checker → · Palette generator →

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