#313791#313791

#313791 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.146 H 274.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#313791
RGBrgb(49, 55, 145)
HSLhsl(236, 49%, 38%)
HSVhsv(236, 66%, 57%)
CMYKcmyk(66.2%, 62.1%, 0%, 43.1%)
CIE-LABlab(27.92, 27.42, -50.57)
CIE-LCHlch(27.92, 57.53, 298.46°)
OKLaboklab(38.96% 0.0114 -0.1457)
OKLCHoklch(38.96% 0.146 274.5)
XYZxyz(7.7420, 5.4290, 27.4225)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313791 #918B31
analogous
#316791 #313791 #5B3191
triadic
#313791 #913137 #379131
tetradic
#313791 #913167 #918B31 #31915B
square
#313791 #913167 #918B31 #31915B
split-complementary
#313791 #915B31 #679131
monochromatic
#121436 #222663 #313791 #4148BF #6E74CE

Accessibility & contrast

On white

10.07
#313791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313791
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313791#FFFFFF#000000##FFFFFF
##3137911.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#004D5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313791;
/* rgb */ color: rgb(49, 55, 145);
/* oklch */ color: oklch(39.0% 0.146 274.5);
Tailwind
colors: {
  custom: {
    50: '#756eb2',
    500: '#313791',
    950: '#000000',
  },
}
SCSS
$custom: #313791;
$custom-light: #756eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#313791",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 236.25,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.14611,
    "h": 274.5
  },
  "luminance": 0.0543
}

Semantic roles & 50–950 ramp

primary
#313791
secondary
#B6B168
accent
#D04FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313791

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

Preview Lab → · Contrast checker → · Palette generator →

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