#313951#313951

#313951 is a dark, muted blue. Relative luminance 0.042; OKLCH L 34.8% C 0.043 H 269.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#313951
RGBrgb(49, 57, 81)
HSLhsl(225, 25%, 25%)
HSVhsv(225, 40%, 32%)
CMYKcmyk(39.5%, 29.6%, 0%, 68.2%)
CIE-LABlab(24.24, 3.54, -15.66)
CIE-LCHlch(24.24, 16.05, 282.75°)
OKLaboklab(34.81% -0.0001 -0.0435)
OKLCHoklch(34.81% 0.044 269.9)
XYZxyz(4.2145, 4.1731, 8.3664)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313951 #514931
analogous
#314951 #313951 #393151
triadic
#313951 #513139 #395131
tetradic
#313951 #513149 #514931 #315139
square
#313951 #513149 #514931 #315139
split-complementary
#313951 #513931 #495131
monochromatic
#0C0D13 #1A1E2B #313951 #485477 #5F6F9D

Accessibility & contrast

On white

11.45
#313951 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313951 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313951
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313951#FFFFFF#000000##FFFFFF
##3139511.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313B52
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#273E41
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313951;
/* rgb */ color: rgb(49, 57, 81);
/* oklch */ color: oklch(34.8% 0.043 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a6f82',
    500: '#313951',
    950: '#000000',
  },
}
SCSS
$custom: #313951;
$custom-light: #6a6f82;
$custom-dark: #000000;
JSON
{
  "hex": "#313951",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 81
  },
  "hsl": {
    "h": 225,
    "s": 24.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34808,
    "c": 0.0435,
    "h": 269.9
  },
  "luminance": 0.04173
}

Semantic roles & 50–950 ramp

primary
#313951
secondary
#82785C
accent
#AA67C1
background
#F6F6F7
surface
#EBECEE
border
#C6C7C9
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313951

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

Preview Lab → · Contrast checker → · Palette generator →

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