#313591#313591

#313591 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.149 H 275.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#313591
RGBrgb(49, 53, 145)
HSLhsl(238, 49%, 38%)
HSVhsv(238, 66%, 57%)
CMYKcmyk(66.2%, 63.4%, 0%, 43.1%)
CIE-LABlab(27.42, 28.73, -51.40)
CIE-LCHlch(27.42, 58.89, 299.20°)
OKLaboklab(38.59% 0.0131 -0.1481)
OKLCHoklch(38.59% 0.149 275.1)
XYZxyz(7.6489, 5.2429, 27.3915)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313591 #918D31
analogous
#316591 #313591 #5D3191
triadic
#313591 #913135 #359131
tetradic
#313591 #913165 #918D31 #31915D
square
#313591 #913165 #918D31 #31915D
split-complementary
#313591 #915D31 #659131
monochromatic
#121436 #222463 #313591 #4146BF #6E72CE

Accessibility & contrast

On white

10.25
#313591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#313591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313591
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313591#FFFFFF#000000##FFFFFF
##3135911.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313591;
/* rgb */ color: rgb(49, 53, 145);
/* oklch */ color: oklch(38.6% 0.149 275.1);
Tailwind
colors: {
  custom: {
    50: '#756cb2',
    500: '#313591',
    950: '#000000',
  },
}
SCSS
$custom: #313591;
$custom-light: #756cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#313591",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 145
  },
  "hsl": {
    "h": 237.5,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3859,
    "c": 0.14869,
    "h": 275.1
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313591

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

Preview Lab → · Contrast checker → · Palette generator →

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