#313151#313151

#313151 is a dark, muted blue. Relative luminance 0.034; OKLCH L 32.9% C 0.056 H 282.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#313151
RGBrgb(49, 49, 81)
HSLhsl(240, 25%, 25%)
HSVhsv(240, 40%, 32%)
CMYKcmyk(39.5%, 39.5%, 0%, 68.2%)
CIE-LABlab(21.74, 9.04, -19.55)
CIE-LCHlch(21.74, 21.54, 294.83°)
OKLaboklab(32.88% 0.0125 -0.0547)
OKLCHoklch(32.88% 0.056 282.9)
XYZxyz(3.8497, 3.4435, 8.2448)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313151 #515131
analogous
#314151 #313151 #413151
triadic
#313151 #513131 #315131
tetradic
#313151 #513141 #515131 #315141
square
#313151 #513141 #515131 #315141
split-complementary
#313151 #514131 #415131
monochromatic
#0C0C13 #1A1A2B #313151 #484877 #5F5F9D

Accessibility & contrast

On white

12.43
#313151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#313151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313151
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313151#FFFFFF#000000##FFFFFF
##3131511.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273552
Deuteranopia (green-blind)
#263350
Tritanopia (blue-blind)
#28373D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313151;
/* rgb */ color: rgb(49, 49, 81);
/* oklch */ color: oklch(32.9% 0.056 282.9);
Tailwind
colors: {
  custom: {
    50: '#6a6982',
    500: '#313151',
    950: '#000000',
  },
}
SCSS
$custom: #313151;
$custom-light: #6a6982;
$custom-dark: #000000;
JSON
{
  "hex": "#313151",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 81
  },
  "hsl": {
    "h": 240,
    "s": 24.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32879,
    "c": 0.05612,
    "h": 282.9
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#313151
secondary
#82825C
accent
#C167C1
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #313151

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

Preview Lab → · Contrast checker → · Palette generator →

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