#313149#313149

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

Color values

HEX#313149
RGBrgb(49, 49, 73)
HSLhsl(240, 20%, 24%)
HSVhsv(240, 33%, 29%)
CMYKcmyk(32.9%, 32.9%, 0%, 71.4%)
CIE-LABlab(21.32, 6.53, -14.83)
CIE-LCHlch(21.32, 16.21, 293.77°)
OKLaboklab(32.42% 0.0101 -0.0411)
OKLCHoklch(32.42% 0.042 283.8)
XYZxyz(3.5672, 3.3305, 6.7570)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313149 #494931
analogous
#313D49 #313149 #3D3149
triadic
#313149 #493131 #314931
tetradic
#313149 #49313D #494931 #31493D
square
#313149 #49313D #494931 #31493D
split-complementary
#313149 #493D31 #3D4931
monochromatic
#0C0C12 #181824 #313149 #4A4A6E #626292

Accessibility & contrast

On white

12.60
#313149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#313149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313149
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313149#FFFFFF#000000##FFFFFF
##3131491.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A344A
Deuteranopia (green-blind)
#293248
Tritanopia (blue-blind)
#2B353A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313149;
/* rgb */ color: rgb(49, 49, 73);
/* oklch */ color: oklch(32.4% 0.042 283.8);
Tailwind
colors: {
  custom: {
    50: '#6a697b',
    500: '#313149',
    950: '#000000',
  },
}
SCSS
$custom: #313149;
$custom-light: #6a697b;
$custom-dark: #000000;
JSON
{
  "hex": "#313149",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 73
  },
  "hsl": {
    "h": 240,
    "s": 19.672,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3242,
    "c": 0.04236,
    "h": 283.8
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#313149
secondary
#7A7A5C
accent
#BC6CBC
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313149

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

Preview Lab → · Contrast checker → · Palette generator →

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