#31476B#31476B

#31476B is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.7% C 0.067 H 259.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#31476B
RGBrgb(49, 71, 107)
HSLhsl(217, 37%, 31%)
HSVhsv(217, 54%, 42%)
CMYKcmyk(54.2%, 33.6%, 0%, 58%)
CIE-LABlab(29.96, 2.87, -23.55)
CIE-LCHlch(29.96, 23.72, 276.94°)
OKLaboklab(39.7% -0.0118 -0.0662)
OKLCHoklch(39.7% 0.067 259.9)
XYZxyz(6.1728, 6.2205, 14.7825)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31476B #6B5531
analogous
#31646B #31476B #38316B
triadic
#31476B #6B3147 #476B31
tetradic
#31476B #6B3164 #6B5531 #316B38
square
#31476B #6B3164 #6B5531 #316B38
split-complementary
#31476B #6B3831 #646B31
monochromatic
#0B0F17 #1E2B41 #31476B #446395 #6081B6

Accessibility & contrast

On white

9.36
#31476B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31476B
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31476B#FFFFFF#000000##FFFFFF
##31476B1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394A6D
Deuteranopia (green-blind)
#32446A
Tritanopia (blue-blind)
#154F54
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #31476b;
/* rgb */ color: rgb(49, 71, 107);
/* oklch */ color: oklch(39.7% 0.067 259.9);
Tailwind
colors: {
  custom: {
    50: '#6d7a95',
    500: '#31476b',
    950: '#000000',
  },
}
SCSS
$custom: #31476b;
$custom-light: #6d7a95;
$custom-dark: #000000;
JSON
{
  "hex": "#31476b",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 107
  },
  "hsl": {
    "h": 217.241,
    "s": 37.179,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39699,
    "c": 0.06727,
    "h": 259.9
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#31476B
secondary
#9C845C
accent
#A25BCD
background
#F6F7F9
surface
#ECEDF1
border
#C7C8CB
text
#07090D
muted
#7A7B7E

Preview Lab

Preview with #31476B

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

Preview Lab → · Contrast checker → · Palette generator →

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