#313684#313684

#313684 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.7% C 0.129 H 275.5°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#313684
RGBrgb(49, 54, 132)
HSLhsl(236, 46%, 35%)
HSVhsv(236, 63%, 52%)
CMYKcmyk(62.9%, 59.1%, 0%, 48.2%)
CIE-LABlab(26.61, 23.38, -44.65)
CIE-LCHlch(26.61, 50.40, 297.64°)
OKLaboklab(37.66% 0.0125 -0.1282)
OKLCHoklch(37.66% 0.129 275.5)
XYZxyz(6.7493, 4.9567, 22.4264)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313684 #847F31
analogous
#315F84 #313684 #563184
triadic
#313684 #843136 #368431
tetradic
#313684 #84315F #847F31 #318456
square
#313684 #84315F #847F31 #318456
split-complementary
#313684 #845631 #5F8431
monochromatic
#10112B #202457 #313684 #4248B1 #686EC7

Accessibility & contrast

On white

10.55
#313684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313684
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313684#FFFFFF#000000##FFFFFF
##3136841.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003B82
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313684;
/* rgb */ color: rgb(49, 54, 132);
/* oklch */ color: oklch(37.7% 0.129 275.5);
Tailwind
colors: {
  custom: {
    50: '#726da8',
    500: '#313684',
    950: '#000000',
  },
}
SCSS
$custom: #313684;
$custom-light: #726da8;
$custom-dark: #000000;
JSON
{
  "hex": "#313684",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 132
  },
  "hsl": {
    "h": 236.386,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37662,
    "c": 0.12885,
    "h": 275.5
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313684

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

Preview Lab → · Contrast checker → · Palette generator →

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