#313586#313586

#313586 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.133 H 275.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#313586
RGBrgb(49, 53, 134)
HSLhsl(237, 46%, 36%)
HSVhsv(237, 63%, 53%)
CMYKcmyk(63.4%, 60.4%, 0%, 47.5%)
CIE-LABlab(26.51, 24.78, -46.07)
CIE-LCHlch(26.51, 52.31, 298.27°)
OKLaboklab(37.63% 0.0135 -0.1324)
OKLCHoklch(37.63% 0.133 275.8)
XYZxyz(6.8414, 4.9199, 23.1387)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313586 #868231
analogous
#315F86 #313586 #573186
triadic
#313586 #863135 #358631
tetradic
#313586 #86315F #868231 #318657
square
#313586 #86315F #868231 #318657
split-complementary
#313586 #865731 #5F8631
monochromatic
#10122C #212359 #313586 #4147B3 #696EC8

Accessibility & contrast

On white

10.58
#313586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#313586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313586
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313586#FFFFFF#000000##FFFFFF
##3135861.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313586;
/* rgb */ color: rgb(49, 53, 134);
/* oklch */ color: oklch(37.6% 0.133 275.8);
Tailwind
colors: {
  custom: {
    50: '#736caa',
    500: '#313586',
    950: '#000000',
  },
}
SCSS
$custom: #313586;
$custom-light: #736caa;
$custom-dark: #000000;
JSON
{
  "hex": "#313586",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 134
  },
  "hsl": {
    "h": 237.176,
    "s": 46.448,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.13312,
    "h": 275.8
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#313586
secondary
#B0AC63
accent
#D052D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313586

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

Preview Lab → · Contrast checker → · Palette generator →

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