#313148#313148

#313148 is a dark, muted blue. Relative luminance 0.033; OKLCH L 32.4% C 0.041 H 283.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#313148
RGBrgb(49, 49, 72)
HSLhsl(240, 19%, 24%)
HSVhsv(240, 32%, 28%)
CMYKcmyk(31.9%, 31.9%, 0%, 71.8%)
CIE-LABlab(21.27, 6.23, -14.24)
CIE-LCHlch(21.27, 15.54, 293.63°)
OKLaboklab(32.37% 0.0098 -0.0394)
OKLCHoklch(32.37% 0.041 283.9)
XYZxyz(3.5343, 3.3174, 6.5837)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313148 #484831
analogous
#313C48 #313148 #3C3148
triadic
#313148 #483131 #314831
tetradic
#313148 #48313C #484831 #31483C
square
#313148 #48313C #484831 #31483C
split-complementary
#313148 #483C31 #3C4831
monochromatic
#0C0C12 #181824 #313148 #4A4A6C #636391

Accessibility & contrast

On white

12.62
#313148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#313148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313148
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313148#FFFFFF#000000##FFFFFF
##3131481.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3449
Deuteranopia (green-blind)
#2A3247
Tritanopia (blue-blind)
#2B3539
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313148;
/* rgb */ color: rgb(49, 49, 72);
/* oklch */ color: oklch(32.4% 0.041 283.9);
Tailwind
colors: {
  custom: {
    50: '#69697b',
    500: '#313148',
    950: '#000000',
  },
}
SCSS
$custom: #313148;
$custom-light: #69697b;
$custom-dark: #000000;
JSON
{
  "hex": "#313148",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 72
  },
  "hsl": {
    "h": 240,
    "s": 19.008,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32366,
    "c": 0.04062,
    "h": 283.9
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#313148
secondary
#79795C
accent
#BC6CBC
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313148

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

Preview Lab → · Contrast checker → · Palette generator →

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