#313784#313784

#313784 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.127 H 275.1°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#313784
RGBrgb(49, 55, 132)
HSLhsl(236, 46%, 35%)
HSVhsv(236, 63%, 52%)
CMYKcmyk(62.9%, 58.3%, 0%, 48.2%)
CIE-LABlab(26.88, 22.71, -44.21)
CIE-LCHlch(26.88, 49.70, 297.19°)
OKLaboklab(37.86% 0.0114 -0.127)
OKLCHoklch(37.86% 0.127 275.1)
XYZxyz(6.7963, 5.0508, 22.4421)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313784 #847E31
analogous
#316084 #313784 #553184
triadic
#313784 #843137 #378431
tetradic
#313784 #843160 #847E31 #318455
square
#313784 #843160 #847E31 #318455
split-complementary
#313784 #845531 #608431
monochromatic
#10122B #202457 #313784 #424AB1 #686FC7

Accessibility & contrast

On white

10.45
#313784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313784
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313784#FFFFFF#000000##FFFFFF
##3137841.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313784;
/* rgb */ color: rgb(49, 55, 132);
/* oklch */ color: oklch(37.9% 0.127 275.1);
Tailwind
colors: {
  custom: {
    50: '#726da8',
    500: '#313784',
    950: '#000000',
  },
}
SCSS
$custom: #313784;
$custom-light: #726da8;
$custom-dark: #000000;
JSON
{
  "hex": "#313784",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 132
  },
  "hsl": {
    "h": 235.663,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37861,
    "c": 0.12748,
    "h": 275.1
  },
  "luminance": 0.05051
}

Semantic roles & 50–950 ramp

primary
#313784
secondary
#AEA962
accent
#CC52D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313784

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

Preview Lab → · Contrast checker → · Palette generator →

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