#313786#313786

#313786 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.130 H 275.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#313786
RGBrgb(49, 55, 134)
HSLhsl(236, 46%, 36%)
HSVhsv(236, 63%, 53%)
CMYKcmyk(63.4%, 59%, 0%, 47.5%)
CIE-LABlab(27.03, 23.43, -45.21)
CIE-LCHlch(27.03, 50.92, 297.40°)
OKLaboklab(38.03% 0.0115 -0.1299)
OKLCHoklch(38.03% 0.13 275)
XYZxyz(6.9345, 5.1060, 23.1698)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313786 #868031
analogous
#316186 #313786 #553186
triadic
#313786 #863137 #378631
tetradic
#313786 #863161 #868031 #318655
square
#313786 #863161 #868031 #318655
split-complementary
#313786 #865531 #618631
monochromatic
#10122C #212559 #313786 #4149B3 #6970C8

Accessibility & contrast

On white

10.39
#313786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313786
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313786#FFFFFF#000000##FFFFFF
##3137861.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313786;
/* rgb */ color: rgb(49, 55, 134);
/* oklch */ color: oklch(38.0% 0.130 275.0);
Tailwind
colors: {
  custom: {
    50: '#736daa',
    500: '#313786',
    950: '#000000',
  },
}
SCSS
$custom: #313786;
$custom-light: #736daa;
$custom-dark: #000000;
JSON
{
  "hex": "#313786",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 235.765,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38027,
    "c": 0.1304,
    "h": 275
  },
  "luminance": 0.05107
}

Semantic roles & 50–950 ramp

primary
#313786
secondary
#B0AA63
accent
#CD52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313786

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

Preview Lab → · Contrast checker → · Palette generator →

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