#313671#313671

#313671 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.100 H 276.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#313671
RGBrgb(49, 54, 113)
HSLhsl(235, 40%, 32%)
HSVhsv(235, 57%, 44%)
CMYKcmyk(56.6%, 52.2%, 0%, 55.7%)
CIE-LABlab(25.21, 16.54, -34.91)
CIE-LCHlch(25.21, 38.63, 295.35°)
OKLaboklab(36.17% 0.0114 -0.0996)
OKLCHoklch(36.17% 0.1 276.5)
XYZxyz(5.5655, 4.4832, 16.1917)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313671 #716C31
analogous
#315671 #313671 #4C3171
triadic
#313671 #713136 #367131
tetradic
#313671 #713156 #716C31 #31714C
square
#313671 #713156 #716C31 #31714C
split-complementary
#313671 #714C31 #567131
monochromatic
#0C0D1C #1E2246 #313671 #444A9C #6269BB

Accessibility & contrast

On white

11.07
#313671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#313671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313671
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313671#FFFFFF#000000##FFFFFF
##3136711.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193E73
Deuteranopia (green-blind)
#103970
Tritanopia (blue-blind)
#12434E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #313671;
/* rgb */ color: rgb(49, 54, 113);
/* oklch */ color: oklch(36.2% 0.100 276.5);
Tailwind
colors: {
  custom: {
    50: '#6f6c9a',
    500: '#313671',
    950: '#000000',
  },
}
SCSS
$custom: #313671;
$custom-light: #6f6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#313671",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 113
  },
  "hsl": {
    "h": 235.313,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36165,
    "c": 0.10027,
    "h": 276.5
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#313671
secondary
#A29D5C
accent
#C658CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313671

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

Preview Lab → · Contrast checker → · Palette generator →

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