#313987#313987

#313987 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.5% C 0.129 H 274.2°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#313987
RGBrgb(49, 57, 135)
HSLhsl(234, 47%, 36%)
HSVhsv(234, 64%, 53%)
CMYKcmyk(63.7%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.65, 22.45, -44.83)
CIE-LCHlch(27.65, 50.14, 296.60°)
OKLaboklab(38.51% 0.0095 -0.1288)
OKLCHoklch(38.51% 0.129 274.2)
XYZxyz(7.1015, 5.3279, 23.5711)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313987 #877F31
analogous
#316487 #313987 #543187
triadic
#313987 #873139 #398731
tetradic
#313987 #873164 #877F31 #318754
square
#313987 #873164 #877F31 #318754
split-complementary
#313987 #875431 #648731
monochromatic
#10132D #21265A #313987 #414CB4 #6A72C9

Accessibility & contrast

On white

10.17
#313987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313987
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313987#FFFFFF#000000##FFFFFF
##3139871.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313987;
/* rgb */ color: rgb(49, 57, 135);
/* oklch */ color: oklch(38.5% 0.129 274.2);
Tailwind
colors: {
  custom: {
    50: '#736fab',
    500: '#313987',
    950: '#000000',
  },
}
SCSS
$custom: #313987;
$custom-light: #736fab;
$custom-dark: #000000;
JSON
{
  "hex": "#313987",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 234.419,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38509,
    "c": 0.12912,
    "h": 274.2
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#313987
secondary
#B0A964
accent
#CA51D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313987

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

Preview Lab → · Contrast checker → · Palette generator →

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