#313658#313658

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

Color values

HEX#313658
RGBrgb(49, 54, 88)
HSLhsl(232, 28%, 27%)
HSVhsv(232, 44%, 35%)
CMYKcmyk(44.3%, 38.6%, 0%, 65.5%)
CIE-LABlab(23.66, 7.87, -21.17)
CIE-LCHlch(23.66, 22.59, 290.39°)
OKLaboklab(34.48% 0.0067 -0.0594)
OKLCHoklch(34.48% 0.06 276.4)
XYZxyz(4.3467, 3.9957, 9.7728)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313658 #585331
analogous
#314A58 #313658 #403158
triadic
#313658 #583136 #365831
tetradic
#313658 #58314A #585331 #315840
square
#313658 #58314A #585331 #315840
split-complementary
#313658 #584031 #4A5831
monochromatic
#0B0C14 #1B1E31 #313658 #474E7F #5E67A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313658#FFFFFF#000000##FFFFFF
##3136581.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)
#2A3A59
Deuteranopia (green-blind)
#283757
Tritanopia (blue-blind)
#253D43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313658;
/* rgb */ color: rgb(49, 54, 88);
/* oklch */ color: oklch(34.5% 0.060 276.4);
Tailwind
colors: {
  custom: {
    50: '#6b6c87',
    500: '#313658',
    950: '#000000',
  },
}
SCSS
$custom: #313658;
$custom-light: #6b6c87;
$custom-dark: #000000;
JSON
{
  "hex": "#313658",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 88
  },
  "hsl": {
    "h": 232.308,
    "s": 28.467,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34479,
    "c": 0.0598,
    "h": 276.4
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#313658
secondary
#89835C
accent
#B863C5
background
#F6F6F8
surface
#EBEBEF
border
#C6C6CA
text
#07070B
muted
#7A7A7C

Preview Lab

Preview with #313658

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

Preview Lab → · Contrast checker → · Palette generator →

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