#313142#313142

#313142 is a dark, muted blue. Relative luminance 0.032; OKLCH L 32.1% C 0.030 H 284.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#313142
RGBrgb(49, 49, 66)
HSLhsl(240, 15%, 23%)
HSVhsv(240, 26%, 26%)
CMYKcmyk(25.8%, 25.8%, 0%, 74.1%)
CIE-LABlab(20.99, 4.46, -10.61)
CIE-LCHlch(20.99, 11.51, 292.79°)
OKLaboklab(32.06% 0.0076 -0.0291)
OKLCHoklch(32.06% 0.03 284.6)
XYZxyz(3.3481, 3.2429, 5.6027)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313142 #424231
analogous
#313942 #313142 #393142
triadic
#313142 #423131 #314231
tetradic
#313142 #423139 #424231 #314239
square
#313142 #423139 #424231 #314239
split-complementary
#313142 #423931 #394231
monochromatic
#0D0D12 #17171F #313142 #4B4B65 #656588

Accessibility & contrast

On white

12.74
#313142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313142
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313142#FFFFFF#000000##FFFFFF
##3131421.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3343
Deuteranopia (green-blind)
#2C3242
Tritanopia (blue-blind)
#2D3437
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #313142;
/* rgb */ color: rgb(49, 49, 66);
/* oklch */ color: oklch(32.1% 0.030 284.6);
Tailwind
colors: {
  custom: {
    50: '#696976',
    500: '#313142',
    950: '#000000',
  },
}
SCSS
$custom: #313142;
$custom-light: #696976;
$custom-dark: #000000;
JSON
{
  "hex": "#313142",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 66
  },
  "hsl": {
    "h": 240,
    "s": 14.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32055,
    "c": 0.03009,
    "h": 284.6
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#313142
secondary
#72725D
accent
#B870B8
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #313142

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

Preview Lab → · Contrast checker → · Palette generator →

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