#313342#313342

#313342 is a dark, muted blue. Relative luminance 0.034; OKLCH L 32.6% C 0.027 H 278.9°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#313342
RGBrgb(49, 51, 66)
HSLhsl(233, 15%, 23%)
HSVhsv(233, 26%, 26%)
CMYKcmyk(25.8%, 22.7%, 0%, 74.1%)
CIE-LABlab(21.63, 3.09, -9.63)
CIE-LCHlch(21.63, 10.12, 287.76°)
OKLaboklab(32.55% 0.0041 -0.0264)
OKLCHoklch(32.55% 0.027 278.9)
XYZxyz(3.4336, 3.4139, 5.6312)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313342 #424031
analogous
#313C42 #313342 #373142
triadic
#313342 #423133 #334231
tetradic
#313342 #42313C #424031 #314237
square
#313342 #42313C #424031 #314237
split-complementary
#313342 #423731 #3C4231
monochromatic
#0D0E12 #17181F #313342 #4B4E65 #656988

Accessibility & contrast

On white

12.48
#313342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#313342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313342
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313342#FFFFFF#000000##FFFFFF
##3133421.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3443
Deuteranopia (green-blind)
#2E3342
Tritanopia (blue-blind)
#2D3638
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313342;
/* rgb */ color: rgb(49, 51, 66);
/* oklch */ color: oklch(32.6% 0.027 278.9);
Tailwind
colors: {
  custom: {
    50: '#696a76',
    500: '#313342',
    950: '#000000',
  },
}
SCSS
$custom: #313342;
$custom-light: #696a76;
$custom-dark: #000000;
JSON
{
  "hex": "#313342",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 66
  },
  "hsl": {
    "h": 232.941,
    "s": 14.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32552,
    "c": 0.02671,
    "h": 278.9
  },
  "luminance": 0.03414
}

Semantic roles & 50–950 ramp

primary
#313342
secondary
#72705D
accent
#AF70B8
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #313342

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

Preview Lab → · Contrast checker → · Palette generator →

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