#313B87#313B87

#313B87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.126 H 273.4°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#313B87
RGBrgb(49, 59, 135)
HSLhsl(233, 47%, 36%)
HSVhsv(233, 64%, 53%)
CMYKcmyk(63.7%, 56.3%, 0%, 47.1%)
CIE-LABlab(28.19, 21.09, -43.95)
CIE-LCHlch(28.19, 48.75, 295.64°)
OKLaboklab(38.92% 0.0075 -0.1262)
OKLCHoklch(38.92% 0.126 273.4)
XYZxyz(7.2023, 5.5296, 23.6047)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B87 #877D31
analogous
#316687 #313B87 #523187
triadic
#313B87 #87313B #3B8731
tetradic
#313B87 #873166 #877D31 #318752
square
#313B87 #873166 #877D31 #318752
split-complementary
#313B87 #875231 #668731
monochromatic
#10142D #21275A #313B87 #414FB4 #6A75C9

Accessibility & contrast

On white

9.97
#313B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#313B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B87
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B87#FFFFFF#000000##FFFFFF
##313B871.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04468A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313b87;
/* rgb */ color: rgb(49, 59, 135);
/* oklch */ color: oklch(38.9% 0.126 273.4);
Tailwind
colors: {
  custom: {
    50: '#7370ab',
    500: '#313b87',
    950: '#000000',
  },
}
SCSS
$custom: #313b87;
$custom-light: #7370ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313b87",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 233.023,
    "s": 46.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38916,
    "c": 0.12638,
    "h": 273.4
  },
  "luminance": 0.0553
}

Semantic roles & 50–950 ramp

primary
#313B87
secondary
#B0A764
accent
#C751D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313B87

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

Preview Lab → · Contrast checker → · Palette generator →

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