#313587#313587

#313587 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.135 H 275.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#313587
RGBrgb(49, 53, 135)
HSLhsl(237, 47%, 36%)
HSVhsv(237, 64%, 53%)
CMYKcmyk(63.7%, 60.7%, 0%, 47.1%)
CIE-LABlab(26.59, 25.14, -46.56)
CIE-LCHlch(26.59, 52.91, 298.36°)
OKLaboklab(37.72% 0.0135 -0.1339)
OKLCHoklch(37.72% 0.135 275.7)
XYZxyz(6.9115, 4.9479, 23.5078)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313587 #878331
analogous
#316087 #313587 #583187
triadic
#313587 #873135 #358731
tetradic
#313587 #873160 #878331 #318758
square
#313587 #873160 #878331 #318758
split-complementary
#313587 #875831 #608731
monochromatic
#10122D #21235A #313587 #4147B4 #6A6EC9

Accessibility & contrast

On white

10.55
#313587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313587
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313587#FFFFFF#000000##FFFFFF
##3135871.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003B85
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313587;
/* rgb */ color: rgb(49, 53, 135);
/* oklch */ color: oklch(37.7% 0.135 275.7);
Tailwind
colors: {
  custom: {
    50: '#736cab',
    500: '#313587',
    950: '#000000',
  },
}
SCSS
$custom: #313587;
$custom-light: #736cab;
$custom-dark: #000000;
JSON
{
  "hex": "#313587",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 135
  },
  "hsl": {
    "h": 237.209,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37718,
    "c": 0.13456,
    "h": 275.7
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#313587
secondary
#B0AD64
accent
#D051D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313587

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

Preview Lab → · Contrast checker → · Palette generator →

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