#313656#313656

#313656 is a dark, muted blue. Relative luminance 0.040; OKLCH L 34.4% C 0.056 H 276.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#313656
RGBrgb(49, 54, 86)
HSLhsl(232, 27%, 26%)
HSVhsv(232, 43%, 34%)
CMYKcmyk(43%, 37.2%, 0%, 66.3%)
CIE-LABlab(23.55, 7.21, -20.03)
CIE-LCHlch(23.55, 21.28, 289.80°)
OKLaboklab(34.36% 0.0061 -0.0561)
OKLCHoklch(34.36% 0.056 276.2)
XYZxyz(4.2650, 3.9630, 9.3425)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313656 #565131
analogous
#314956 #313656 #3F3156
triadic
#313656 #563136 #365631
tetradic
#313656 #563149 #565131 #31563F
square
#313656 #563149 #565131 #31563F
split-complementary
#313656 #563F31 #495631
monochromatic
#0B0C13 #1B1E2F #313656 #474E7D #5E67A3

Accessibility & contrast

On white

11.71
#313656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#313656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313656
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313656#FFFFFF#000000##FFFFFF
##3136561.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3A57
Deuteranopia (green-blind)
#293755
Tritanopia (blue-blind)
#263C42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313656;
/* rgb */ color: rgb(49, 54, 86);
/* oklch */ color: oklch(34.4% 0.056 276.2);
Tailwind
colors: {
  custom: {
    50: '#6b6c86',
    500: '#313656',
    950: '#000000',
  },
}
SCSS
$custom: #313656;
$custom-light: #6b6c86;
$custom-dark: #000000;
JSON
{
  "hex": "#313656",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 86
  },
  "hsl": {
    "h": 231.892,
    "s": 27.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.05643,
    "h": 276.2
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#313656
secondary
#87815C
accent
#B764C4
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #313656

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

Preview Lab → · Contrast checker → · Palette generator →

#313656 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva