#313491#313491

#313491 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.150 H 275.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#313491
RGBrgb(49, 52, 145)
HSLhsl(238, 49%, 38%)
HSVhsv(238, 66%, 57%)
CMYKcmyk(66.2%, 64.1%, 0%, 43.1%)
CIE-LABlab(27.17, 29.39, -51.81)
CIE-LCHlch(27.17, 59.56, 299.56°)
OKLaboklab(38.41% 0.014 -0.1493)
OKLCHoklch(38.41% 0.15 275.3)
XYZxyz(7.6038, 5.1526, 27.3764)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313491 #918E31
analogous
#316491 #313491 #5E3191
triadic
#313491 #913134 #349131
tetradic
#313491 #913164 #918E31 #31915E
square
#313491 #913164 #918E31 #31915E
split-complementary
#313491 #915E31 #649131
monochromatic
#121336 #222463 #313491 #4144BF #6E71CE

Accessibility & contrast

On white

10.34
#313491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313491
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313491#FFFFFF#000000##FFFFFF
##3134911.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003C8F
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313491;
/* rgb */ color: rgb(49, 52, 145);
/* oklch */ color: oklch(38.4% 0.150 275.3);
Tailwind
colors: {
  custom: {
    50: '#756bb2',
    500: '#313491',
    950: '#000000',
  },
}
SCSS
$custom: #313491;
$custom-light: #756bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#313491",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 145
  },
  "hsl": {
    "h": 238.125,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.14997,
    "h": 275.3
  },
  "luminance": 0.05153
}

Semantic roles & 50–950 ramp

primary
#313491
secondary
#B6B368
accent
#D54FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #313491

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

Preview Lab → · Contrast checker → · Palette generator →

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