#313387#313387

#313387 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.137 H 276.4°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#313387
RGBrgb(49, 51, 135)
HSLhsl(239, 47%, 36%)
HSVhsv(239, 64%, 53%)
CMYKcmyk(63.7%, 62.2%, 0%, 47.1%)
CIE-LABlab(26.07, 26.47, -47.40)
CIE-LCHlch(26.07, 54.29, 299.18°)
OKLaboklab(37.34% 0.0154 -0.1364)
OKLCHoklch(37.34% 0.137 276.4)
XYZxyz(6.8222, 4.7694, 23.4780)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313387 #878531
analogous
#315E87 #313387 #5A3187
triadic
#313387 #873133 #338731
tetradic
#313387 #87315E #878531 #31875A
square
#313387 #87315E #878531 #31875A
split-complementary
#313387 #875A31 #5E8731
monochromatic
#10112D #21225A #313387 #4144B4 #6A6CC9

Accessibility & contrast

On white

10.75
#313387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#313387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313387
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313387#FFFFFF#000000##FFFFFF
##3133871.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #313387;
/* rgb */ color: rgb(49, 51, 135);
/* oklch */ color: oklch(37.3% 0.137 276.4);
Tailwind
colors: {
  custom: {
    50: '#736aab',
    500: '#313387',
    950: '#000000',
  },
}
SCSS
$custom: #313387;
$custom-light: #736aab;
$custom-dark: #000000;
JSON
{
  "hex": "#313387",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 238.605,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37335,
    "c": 0.13724,
    "h": 276.4
  },
  "luminance": 0.0477
}

Semantic roles & 50–950 ramp

primary
#313387
secondary
#B0AE64
accent
#D351D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #313387

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

Preview Lab → · Contrast checker → · Palette generator →

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