#313147#313147

#313147 is a dark, muted blue. Relative luminance 0.033; OKLCH L 32.3% C 0.039 H 284.0°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#313147
RGBrgb(49, 49, 71)
HSLhsl(240, 18%, 24%)
HSVhsv(240, 31%, 28%)
CMYKcmyk(31%, 31%, 0%, 72.2%)
CIE-LABlab(21.22, 5.93, -13.64)
CIE-LCHlch(21.22, 14.87, 293.50°)
OKLaboklab(32.31% 0.0094 -0.0377)
OKLCHoklch(32.31% 0.039 284)
XYZxyz(3.5020, 3.3044, 6.4133)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313147 #474731
analogous
#313C47 #313147 #3C3147
triadic
#313147 #473131 #314731
tetradic
#313147 #47313C #474731 #31473C
square
#313147 #47313C #474731 #31473C
split-complementary
#313147 #473C31 #3C4731
monochromatic
#0C0C12 #181823 #313147 #4A4A6B #63638F

Accessibility & contrast

On white

12.64
#313147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313147
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313147#FFFFFF#000000##FFFFFF
##3131471.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3448
Deuteranopia (green-blind)
#2A3246
Tritanopia (blue-blind)
#2C3539
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #313147;
/* rgb */ color: rgb(49, 49, 71);
/* oklch */ color: oklch(32.3% 0.039 284.0);
Tailwind
colors: {
  custom: {
    50: '#69697a',
    500: '#313147',
    950: '#000000',
  },
}
SCSS
$custom: #313147;
$custom-light: #69697a;
$custom-dark: #000000;
JSON
{
  "hex": "#313147",
  "rgb": {
    "r": 49,
    "g": 49,
    "b": 71
  },
  "hsl": {
    "h": 240,
    "s": 18.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32312,
    "c": 0.03887,
    "h": 284
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#313147
secondary
#77775C
accent
#BB6DBB
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313147

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

Preview Lab → · Contrast checker → · Palette generator →

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