#313348#313348

#313348 is a dark, muted blue. Relative luminance 0.035; OKLCH L 32.9% C 0.037 H 279.9°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#313348
RGBrgb(49, 51, 72)
HSLhsl(235, 19%, 24%)
HSVhsv(235, 32%, 28%)
CMYKcmyk(31.9%, 29.2%, 0%, 71.8%)
CIE-LABlab(21.90, 4.85, -13.26)
CIE-LCHlch(21.90, 14.12, 290.09°)
OKLaboklab(32.85% 0.0064 -0.0367)
OKLCHoklch(32.85% 0.037 279.9)
XYZxyz(3.6198, 3.4884, 6.6122)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313348 #484631
analogous
#313E48 #313348 #3A3148
triadic
#313348 #483133 #334831
tetradic
#313348 #48313E #484631 #31483A
square
#313348 #48313E #484631 #31483A
split-complementary
#313348 #483A31 #3E4831
monochromatic
#0C0D12 #181924 #313348 #4A4D6C #636791

Accessibility & contrast

On white

12.37
#313348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#313348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313348
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313348#FFFFFF#000000##FFFFFF
##3133481.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3549
Deuteranopia (green-blind)
#2C3447
Tritanopia (blue-blind)
#2B373A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313348;
/* rgb */ color: rgb(49, 51, 72);
/* oklch */ color: oklch(32.9% 0.037 279.9);
Tailwind
colors: {
  custom: {
    50: '#696a7b',
    500: '#313348',
    950: '#000000',
  },
}
SCSS
$custom: #313348;
$custom-light: #696a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#313348",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 72
  },
  "hsl": {
    "h": 234.783,
    "s": 19.008,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32854,
    "c": 0.03722,
    "h": 279.9
  },
  "luminance": 0.03489
}

Semantic roles & 50–950 ramp

primary
#313348
secondary
#79765C
accent
#B56CBC
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313348

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

Preview Lab → · Contrast checker → · Palette generator →

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