#313691#313691

#313691 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.8% C 0.147 H 274.8°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#313691
RGBrgb(49, 54, 145)
HSLhsl(237, 49%, 38%)
HSVhsv(237, 66%, 57%)
CMYKcmyk(66.2%, 62.8%, 0%, 43.1%)
CIE-LABlab(27.67, 28.07, -50.99)
CIE-LCHlch(27.67, 58.21, 298.84°)
OKLaboklab(38.78% 0.0123 -0.1469)
OKLCHoklch(38.78% 0.147 274.8)
XYZxyz(7.6949, 5.3350, 27.4068)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313691 #918C31
analogous
#316691 #313691 #5C3191
triadic
#313691 #913136 #369131
tetradic
#313691 #913166 #918C31 #31915C
square
#313691 #913166 #918C31 #31915C
split-complementary
#313691 #915C31 #669131
monochromatic
#121436 #222563 #313691 #4147BF #6E73CE

Accessibility & contrast

On white

10.16
#313691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#313691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313691
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313691#FFFFFF#000000##FFFFFF
##3136911.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313691;
/* rgb */ color: rgb(49, 54, 145);
/* oklch */ color: oklch(38.8% 0.147 274.8);
Tailwind
colors: {
  custom: {
    50: '#756db2',
    500: '#313691',
    950: '#000000',
  },
}
SCSS
$custom: #313691;
$custom-light: #756db2;
$custom-dark: #000000;
JSON
{
  "hex": "#313691",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 145
  },
  "hsl": {
    "h": 236.875,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38776,
    "c": 0.14741,
    "h": 274.8
  },
  "luminance": 0.05336
}

Semantic roles & 50–950 ramp

primary
#313691
secondary
#B6B268
accent
#D24FD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313691

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

Preview Lab → · Contrast checker → · Palette generator →

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