#313687#313687

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

Color values

HEX#313687
RGBrgb(49, 54, 135)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 53%)
CMYKcmyk(63.7%, 60%, 0%, 47.1%)
CIE-LABlab(26.85, 24.47, -46.13)
CIE-LCHlch(26.85, 52.22, 297.94°)
OKLaboklab(37.91% 0.0125 -0.1326)
OKLCHoklch(37.91% 0.133 275.4)
XYZxyz(6.9575, 5.0400, 23.5231)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313687 #878231
analogous
#316187 #313687 #573187
triadic
#313687 #873136 #368731
tetradic
#313687 #873161 #878231 #318757
square
#313687 #873161 #878231 #318757
split-complementary
#313687 #875731 #618731
monochromatic
#10122D #21245A #313687 #4148B4 #6A6FC9

Accessibility & contrast

On white

10.46
#313687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#313687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313687
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313687#FFFFFF#000000##FFFFFF
##3136871.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313687;
/* rgb */ color: rgb(49, 54, 135);
/* oklch */ color: oklch(37.9% 0.133 275.4);
Tailwind
colors: {
  custom: {
    50: '#736dab',
    500: '#313687',
    950: '#000000',
  },
}
SCSS
$custom: #313687;
$custom-light: #736dab;
$custom-dark: #000000;
JSON
{
  "hex": "#313687",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 236.512,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37913,
    "c": 0.1332,
    "h": 275.4
  },
  "luminance": 0.05041
}

Semantic roles & 50–950 ramp

primary
#313687
secondary
#B0AC64
accent
#CF51D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313687

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

Preview Lab → · Contrast checker → · Palette generator →

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