#313751#313751

#313751 is a dark, muted blue. Relative luminance 0.040; OKLCH L 34.3% C 0.046 H 273.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#313751
RGBrgb(49, 55, 81)
HSLhsl(229, 25%, 25%)
HSVhsv(229, 40%, 32%)
CMYKcmyk(39.5%, 32.1%, 0%, 68.2%)
CIE-LABlab(23.60, 4.90, -16.64)
CIE-LCHlch(23.60, 17.34, 286.42°)
OKLaboklab(34.32% 0.003 -0.0463)
OKLCHoklch(34.32% 0.046 273.7)
XYZxyz(4.1176, 3.9793, 8.3341)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313751 #514B31
analogous
#314751 #313751 #3B3151
triadic
#313751 #513137 #375131
tetradic
#313751 #513147 #514B31 #31513B
square
#313751 #513147 #514B31 #31513B
split-complementary
#313751 #513B31 #475131
monochromatic
#0C0D13 #1A1D2B #313751 #485177 #5F6B9D

Accessibility & contrast

On white

11.69
#313751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313751
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313751#FFFFFF#000000##FFFFFF
##3137511.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3A52
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#283C40
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313751;
/* rgb */ color: rgb(49, 55, 81);
/* oklch */ color: oklch(34.3% 0.046 273.7);
Tailwind
colors: {
  custom: {
    50: '#6a6d82',
    500: '#313751',
    950: '#000000',
  },
}
SCSS
$custom: #313751;
$custom-light: #6a6d82;
$custom-dark: #000000;
JSON
{
  "hex": "#313751",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 81
  },
  "hsl": {
    "h": 228.75,
    "s": 24.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34317,
    "c": 0.04642,
    "h": 273.7
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#313751
secondary
#827B5C
accent
#B067C1
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06070A
muted
#7A7A7C

Preview Lab

Preview with #313751

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

Preview Lab → · Contrast checker → · Palette generator →

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