#313347#313347

#313347 is a dark, muted blue. Relative luminance 0.035; OKLCH L 32.8% C 0.035 H 279.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#313347
RGBrgb(49, 51, 71)
HSLhsl(235, 18%, 24%)
HSVhsv(235, 31%, 28%)
CMYKcmyk(31%, 28.2%, 0%, 72.2%)
CIE-LABlab(21.86, 4.55, -12.66)
CIE-LCHlch(21.86, 13.46, 289.77°)
OKLaboklab(32.8% 0.006 -0.0349)
OKLCHoklch(32.8% 0.035 279.8)
XYZxyz(3.5875, 3.4755, 6.4418)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313347 #474531
analogous
#313E47 #313347 #3A3147
triadic
#313347 #473133 #334731
tetradic
#313347 #47313E #474531 #31473A
square
#313347 #47313E #474531 #31473A
split-complementary
#313347 #473A31 #3E4731
monochromatic
#0C0D12 #181923 #313347 #4A4D6B #63678F

Accessibility & contrast

On white

12.39
#313347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313347
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313347#FFFFFF#000000##FFFFFF
##3133471.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3548
Deuteranopia (green-blind)
#2C3446
Tritanopia (blue-blind)
#2C373A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #313347;
/* rgb */ color: rgb(49, 51, 71);
/* oklch */ color: oklch(32.8% 0.035 279.8);
Tailwind
colors: {
  custom: {
    50: '#696a7a',
    500: '#313347',
    950: '#000000',
  },
}
SCSS
$custom: #313347;
$custom-light: #696a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#313347",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 71
  },
  "hsl": {
    "h": 234.545,
    "s": 18.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32802,
    "c": 0.03547,
    "h": 279.8
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#313347
secondary
#77755C
accent
#B46DBB
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060609
muted
#7A7A7B

Preview Lab

Preview with #313347

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

Preview Lab → · Contrast checker → · Palette generator →

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