#313140#313140

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

Color values

HEX#313140
RGBrgb(49, 49, 64)
HSLhsl(240, 13%, 22%)
HSVhsv(240, 23%, 25%)
CMYKcmyk(23.4%, 23.4%, 0%, 74.9%)
CIE-LABlab(20.90, 3.89, -9.39)
CIE-LCHlch(20.90, 10.16, 292.49°)
OKLaboklab(31.96% 0.0068 -0.0257)
OKLCHoklch(31.96% 0.027 284.8)
XYZxyz(3.2901, 3.2197, 5.2976)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313140 #404031
analogous
#313940 #313140 #393140
triadic
#313140 #403131 #314031
tetradic
#313140 #403139 #404031 #314039
square
#313140 #403139 #404031 #314039
split-complementary
#313140 #403931 #394031
monochromatic
#0D0D11 #16161D #313140 #4C4C63 #666685

Accessibility & contrast

On white

12.77
#313140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#313140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313140
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313140#FFFFFF#000000##FFFFFF
##3131401.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3341
Deuteranopia (green-blind)
#2D3240
Tritanopia (blue-blind)
#2E3436
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313140;
/* rgb */ color: rgb(49, 49, 64);
/* oklch */ color: oklch(32.0% 0.027 284.8);
Tailwind
colors: {
  custom: {
    50: '#696974',
    500: '#313140',
    950: '#000000',
  },
}
SCSS
$custom: #313140;
$custom-light: #696974;
$custom-dark: #000000;
JSON
{
  "hex": "#313140",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.02656,
    "h": 284.8
  },
  "luminance": 0.0322
}

Semantic roles & 50–950 ramp

primary
#313140
secondary
#70705D
accent
#B672B6
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #313140

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

Preview Lab → · Contrast checker → · Palette generator →

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