#313686#313686

#313686 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.132 H 275.4°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#313686
RGBrgb(49, 54, 134)
HSLhsl(236, 46%, 36%)
HSVhsv(236, 63%, 53%)
CMYKcmyk(63.4%, 59.7%, 0%, 47.5%)
CIE-LABlab(26.77, 24.11, -45.64)
CIE-LCHlch(26.77, 51.61, 297.84°)
OKLaboklab(37.83% 0.0125 -0.1312)
OKLCHoklch(37.83% 0.132 275.4)
XYZxyz(6.8875, 5.0120, 23.1541)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313686 #868131
analogous
#316086 #313686 #563186
triadic
#313686 #863136 #368631
tetradic
#313686 #863160 #868131 #318656
square
#313686 #863160 #868131 #318656
split-complementary
#313686 #865631 #608631
monochromatic
#10122C #212459 #313686 #4148B3 #696FC8

Accessibility & contrast

On white

10.49
#313686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313686
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313686#FFFFFF#000000##FFFFFF
##3136861.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313686;
/* rgb */ color: rgb(49, 54, 134);
/* oklch */ color: oklch(37.8% 0.132 275.4);
Tailwind
colors: {
  custom: {
    50: '#736daa',
    500: '#313686',
    950: '#000000',
  },
}
SCSS
$custom: #313686;
$custom-light: #736daa;
$custom-dark: #000000;
JSON
{
  "hex": "#313686",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 134
  },
  "hsl": {
    "h": 236.471,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37829,
    "c": 0.13176,
    "h": 275.4
  },
  "luminance": 0.05013
}

Semantic roles & 50–950 ramp

primary
#313686
secondary
#B0AB63
accent
#CE52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313686

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

Preview Lab → · Contrast checker → · Palette generator →

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