#313E86#313E86

#313E86 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.121 H 272.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#313E86
RGBrgb(49, 62, 134)
HSLhsl(231, 46%, 36%)
HSVhsv(231, 63%, 53%)
CMYKcmyk(63.4%, 53.7%, 0%, 47.5%)
CIE-LABlab(28.95, 18.69, -42.11)
CIE-LCHlch(28.95, 46.07, 293.94°)
OKLaboklab(39.46% 0.0043 -0.1207)
OKLCHoklch(39.46% 0.121 272)
XYZxyz(7.2909, 5.8188, 23.2886)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E86 #867931
analogous
#316886 #313E86 #4E3186
triadic
#313E86 #86313E #3E8631
tetradic
#313E86 #863168 #867931 #31864E
square
#313E86 #863168 #867931 #31864E
split-complementary
#313E86 #864E31 #688631
monochromatic
#10152C #212959 #313E86 #4153B3 #6978C8

Accessibility & contrast

On white

9.71
#313E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313E86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E86
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E86#FFFFFF#000000##FFFFFF
##313E861.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134889
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313e86;
/* rgb */ color: rgb(49, 62, 134);
/* oklch */ color: oklch(39.5% 0.121 272.0);
Tailwind
colors: {
  custom: {
    50: '#7273aa',
    500: '#313e86',
    950: '#000000',
  },
}
SCSS
$custom: #313e86;
$custom-light: #7273aa;
$custom-dark: #000000;
JSON
{
  "hex": "#313e86",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 134
  },
  "hsl": {
    "h": 230.824,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39462,
    "c": 0.12077,
    "h": 272
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#313E86
secondary
#B0A463
accent
#C252D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #313E86

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

Preview Lab → · Contrast checker → · Palette generator →

#313E86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva