#313787#313787

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

Color values

HEX#313787
RGBrgb(49, 55, 135)
HSLhsl(236, 47%, 36%)
HSVhsv(236, 64%, 53%)
CMYKcmyk(63.7%, 59.3%, 0%, 47.1%)
CIE-LABlab(27.11, 23.80, -45.70)
CIE-LCHlch(27.11, 51.53, 297.51°)
OKLaboklab(38.11% 0.0115 -0.1313)
OKLCHoklch(38.11% 0.132 275)
XYZxyz(7.0046, 5.1340, 23.5388)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313787 #878131
analogous
#316287 #313787 #563187
triadic
#313787 #873137 #378731
tetradic
#313787 #873162 #878131 #318756
square
#313787 #873162 #878131 #318756
split-complementary
#313787 #875631 #628731
monochromatic
#10122D #21255A #313787 #4149B4 #6A70C9

Accessibility & contrast

On white

10.36
#313787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313787
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313787#FFFFFF#000000##FFFFFF
##3137871.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313787;
/* rgb */ color: rgb(49, 55, 135);
/* oklch */ color: oklch(38.1% 0.132 275.0);
Tailwind
colors: {
  custom: {
    50: '#736dab',
    500: '#313787',
    950: '#000000',
  },
}
SCSS
$custom: #313787;
$custom-light: #736dab;
$custom-dark: #000000;
JSON
{
  "hex": "#313787",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 235.814,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3811,
    "c": 0.13185,
    "h": 275
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#313787
secondary
#B0AB64
accent
#CD51D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313787

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

Preview Lab → · Contrast checker → · Palette generator →

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