#31476A#31476A

#31476A is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.6% C 0.066 H 259.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#31476A
RGBrgb(49, 71, 106)
HSLhsl(217, 37%, 30%)
HSVhsv(217, 54%, 42%)
CMYKcmyk(53.8%, 33%, 0%, 58.4%)
CIE-LABlab(29.91, 2.52, -22.99)
CIE-LCHlch(29.91, 23.13, 276.25°)
OKLaboklab(39.64% -0.0121 -0.0646)
OKLCHoklch(39.64% 0.066 259.4)
XYZxyz(6.1205, 6.1996, 14.5070)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31476A #6A5431
analogous
#31636A #31476A #37316A
triadic
#31476A #6A3147 #476A31
tetradic
#31476A #6A3163 #6A5431 #316A37
square
#31476A #6A3163 #6A5431 #316A37
split-complementary
#31476A #6A3731 #636A31
monochromatic
#0A0F16 #1E2B40 #31476A #446394 #6081B5

Accessibility & contrast

On white

9.38
#31476A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#31476A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31476A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31476A#FFFFFF#000000##FFFFFF
##31476A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39496B
Deuteranopia (green-blind)
#334469
Tritanopia (blue-blind)
#164F53
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31476a;
/* rgb */ color: rgb(49, 71, 106);
/* oklch */ color: oklch(39.6% 0.066 259.4);
Tailwind
colors: {
  custom: {
    50: '#6d7a95',
    500: '#31476a',
    950: '#000000',
  },
}
SCSS
$custom: #31476a;
$custom-light: #6d7a95;
$custom-dark: #000000;
JSON
{
  "hex": "#31476a",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 106
  },
  "hsl": {
    "h": 216.842,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39642,
    "c": 0.06575,
    "h": 259.4
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#31476A
secondary
#9B835C
accent
#A15BCD
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31476A

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

Preview Lab → · Contrast checker → · Palette generator →

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