#313A87#313A87

#313A87 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.128 H 273.8°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#313A87
RGBrgb(49, 58, 135)
HSLhsl(234, 47%, 36%)
HSVhsv(234, 64%, 53%)
CMYKcmyk(63.7%, 57%, 0%, 47.1%)
CIE-LABlab(27.92, 21.77, -44.39)
CIE-LCHlch(27.92, 49.44, 296.12°)
OKLaboklab(38.71% 0.0085 -0.1275)
OKLCHoklch(38.71% 0.128 273.8)
XYZxyz(7.1514, 5.4278, 23.5878)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A87 #877E31
analogous
#316587 #313A87 #533187
triadic
#313A87 #87313A #3A8731
tetradic
#313A87 #873165 #877E31 #318753
square
#313A87 #873165 #877E31 #318753
split-complementary
#313A87 #875331 #658731
monochromatic
#10132D #21275A #313A87 #414DB4 #6A74C9

Accessibility & contrast

On white

10.07
#313A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A87
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A87#FFFFFF#000000##FFFFFF
##313A871.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313a87;
/* rgb */ color: rgb(49, 58, 135);
/* oklch */ color: oklch(38.7% 0.128 273.8);
Tailwind
colors: {
  custom: {
    50: '#7370ab',
    500: '#313a87',
    950: '#000000',
  },
}
SCSS
$custom: #313a87;
$custom-light: #7370ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313a87",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 233.721,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38711,
    "c": 0.12775,
    "h": 273.8
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#313A87
secondary
#B0A864
accent
#C851D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A87

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

Preview Lab → · Contrast checker → · Palette generator →

#313A87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva