#313752#313752

#313752 is a dark, muted blue. Relative luminance 0.040; OKLCH L 34.4% C 0.048 H 274.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#313752
RGBrgb(49, 55, 82)
HSLhsl(229, 25%, 26%)
HSVhsv(229, 40%, 32%)
CMYKcmyk(40.2%, 32.9%, 0%, 67.8%)
CIE-LABlab(23.65, 5.22, -17.22)
CIE-LCHlch(23.65, 18.00, 286.87°)
OKLaboklab(34.37% 0.0034 -0.048)
OKLCHoklch(34.37% 0.048 274)
XYZxyz(4.1554, 3.9944, 8.5331)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313752 #524C31
analogous
#314752 #313752 #3B3152
triadic
#313752 #523137 #375231
tetradic
#313752 #523147 #524C31 #31523B
square
#313752 #523147 #524C31 #31523B
split-complementary
#313752 #523B31 #475231
monochromatic
#0B0D13 #1A1D2C #313752 #485178 #5F6A9F

Accessibility & contrast

On white

11.67
#313752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#313752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313752
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313752#FFFFFF#000000##FFFFFF
##3137521.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3A53
Deuteranopia (green-blind)
#2C3751
Tritanopia (blue-blind)
#273C41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313752;
/* rgb */ color: rgb(49, 55, 82);
/* oklch */ color: oklch(34.4% 0.048 274.0);
Tailwind
colors: {
  custom: {
    50: '#6a6d82',
    500: '#313752',
    950: '#000000',
  },
}
SCSS
$custom: #313752;
$custom-light: #6a6d82;
$custom-dark: #000000;
JSON
{
  "hex": "#313752",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 82
  },
  "hsl": {
    "h": 229.091,
    "s": 25.191,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.04812,
    "h": 274
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#313752
secondary
#837C5C
accent
#B166C2
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313752

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

Preview Lab → · Contrast checker → · Palette generator →

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