#313986#313986

#313986 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.128 H 274.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#313986
RGBrgb(49, 57, 134)
HSLhsl(234, 46%, 36%)
HSVhsv(234, 63%, 53%)
CMYKcmyk(63.4%, 57.5%, 0%, 47.5%)
CIE-LABlab(27.57, 22.08, -44.33)
CIE-LCHlch(27.57, 49.53, 296.48°)
OKLaboklab(38.43% 0.0095 -0.1273)
OKLCHoklch(38.43% 0.128 274.2)
XYZxyz(7.0314, 5.2999, 23.2021)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313986 #867E31
analogous
#316386 #313986 #533186
triadic
#313986 #863139 #398631
tetradic
#313986 #863163 #867E31 #318653
square
#313986 #863163 #867E31 #318653
split-complementary
#313986 #865331 #638631
monochromatic
#10132C #212659 #313986 #414CB3 #6972C8

Accessibility & contrast

On white

10.19
#313986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#313986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313986
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313986#FFFFFF#000000##FFFFFF
##3139861.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313986;
/* rgb */ color: rgb(49, 57, 134);
/* oklch */ color: oklch(38.4% 0.128 274.2);
Tailwind
colors: {
  custom: {
    50: '#726faa',
    500: '#313986',
    950: '#000000',
  },
}
SCSS
$custom: #313986;
$custom-light: #726faa;
$custom-dark: #000000;
JSON
{
  "hex": "#313986",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 234.353,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.12766,
    "h": 274.2
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#313986
secondary
#B0A863
accent
#CA52D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313986

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

Preview Lab → · Contrast checker → · Palette generator →

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