#313790#313790

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

Color values

HEX#313790
RGBrgb(49, 55, 144)
HSLhsl(236, 49%, 38%)
HSVhsv(236, 66%, 56%)
CMYKcmyk(66%, 61.8%, 0%, 43.5%)
CIE-LABlab(27.84, 27.05, -50.09)
CIE-LCHlch(27.84, 56.93, 298.37°)
OKLaboklab(38.88% 0.0114 -0.1442)
OKLCHoklch(38.88% 0.145 274.5)
XYZxyz(7.6652, 5.3983, 27.0182)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313790 #908A31
analogous
#316690 #313790 #5B3190
triadic
#313790 #903137 #379031
tetradic
#313790 #903166 #908A31 #31905B
square
#313790 #903166 #908A31 #31905B
split-complementary
#313790 #905B31 #669031
monochromatic
#121435 #212662 #313790 #4148BE #6E74CE

Accessibility & contrast

On white

10.10
#313790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313790
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313790#FFFFFF#000000##FFFFFF
##3137901.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313790;
/* rgb */ color: rgb(49, 55, 144);
/* oklch */ color: oklch(38.9% 0.145 274.5);
Tailwind
colors: {
  custom: {
    50: '#756eb1',
    500: '#313790',
    950: '#000000',
  },
}
SCSS
$custom: #313790;
$custom-light: #756eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#313790",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 144
  },
  "hsl": {
    "h": 236.211,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38877,
    "c": 0.1447,
    "h": 274.5
  },
  "luminance": 0.05399
}

Semantic roles & 50–950 ramp

primary
#313790
secondary
#B5B068
accent
#D04FD9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313790

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

Preview Lab → · Contrast checker → · Palette generator →

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