#313590#313590

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

Color values

HEX#313590
RGBrgb(49, 53, 144)
HSLhsl(237, 49%, 38%)
HSVhsv(237, 66%, 56%)
CMYKcmyk(66%, 63.2%, 0%, 43.5%)
CIE-LABlab(27.33, 28.37, -50.92)
CIE-LCHlch(27.33, 58.29, 299.13°)
OKLaboklab(38.5% 0.0132 -0.1467)
OKLCHoklch(38.5% 0.147 275.1)
XYZxyz(7.5721, 5.2121, 26.9872)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313590 #908C31
analogous
#316490 #313590 #5D3190
triadic
#313590 #903135 #359031
tetradic
#313590 #903164 #908C31 #31905D
square
#313590 #903164 #908C31 #31905D
split-complementary
#313590 #905D31 #649031
monochromatic
#121335 #212462 #313590 #4146BE #6E72CE

Accessibility & contrast

On white

10.28
#313590 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#313590 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313590
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313590#FFFFFF#000000##FFFFFF
##3135901.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #313590;
/* rgb */ color: rgb(49, 53, 144);
/* oklch */ color: oklch(38.5% 0.147 275.1);
Tailwind
colors: {
  custom: {
    50: '#756cb1',
    500: '#313590',
    950: '#000000',
  },
}
SCSS
$custom: #313590;
$custom-light: #756cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#313590",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 144
  },
  "hsl": {
    "h": 237.474,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38501,
    "c": 0.1473,
    "h": 275.1
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313590

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

Preview Lab → · Contrast checker → · Palette generator →

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