#313141#313141

#313141 is a dark, muted blue. Relative luminance 0.032; OKLCH L 32.0% C 0.028 H 284.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#313141
RGBrgb(49, 49, 65)
HSLhsl(240, 14%, 22%)
HSVhsv(240, 25%, 25%)
CMYKcmyk(24.6%, 24.6%, 0%, 74.5%)
CIE-LABlab(20.95, 4.17, -10.00)
CIE-LCHlch(20.95, 10.83, 292.64°)
OKLaboklab(32.01% 0.0072 -0.0274)
OKLCHoklch(32.01% 0.028 284.7)
XYZxyz(3.3188, 3.2312, 5.4488)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313141 #414131
analogous
#313941 #313141 #393141
triadic
#313141 #413131 #314131
tetradic
#313141 #413139 #414131 #314139
square
#313141 #413139 #414131 #314139
split-complementary
#313141 #413931 #394131
monochromatic
#0D0D11 #17171E #313141 #4B4B64 #666687

Accessibility & contrast

On white

12.76
#313141 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#313141 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313141
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313141#FFFFFF#000000##FFFFFF
##3131411.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3342
Deuteranopia (green-blind)
#2C3241
Tritanopia (blue-blind)
#2D3436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313141;
/* rgb */ color: rgb(49, 49, 65);
/* oklch */ color: oklch(32.0% 0.028 284.7);
Tailwind
colors: {
  custom: {
    50: '#696975',
    500: '#313141',
    950: '#000000',
  },
}
SCSS
$custom: #313141;
$custom-light: #696975;
$custom-dark: #000000;
JSON
{
  "hex": "#313141",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 65
  },
  "hsl": {
    "h": 240,
    "s": 14.035,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32006,
    "c": 0.02833,
    "h": 284.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#313141
secondary
#71715D
accent
#B771B7
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #313141

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

Preview Lab → · Contrast checker → · Palette generator →

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