#313B99#313B99

#313B99 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.152 H 272.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#313B99
RGBrgb(49, 59, 153)
HSLhsl(234, 51%, 40%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(68%, 61.4%, 0%, 40%)
CIE-LABlab(29.61, 27.67, -52.72)
CIE-LCHlch(29.61, 59.54, 297.69°)
OKLaboklab(40.42% 0.0077 -0.1519)
OKLCHoklch(40.42% 0.152 272.9)
XYZxyz(8.5784, 6.0800, 30.8523)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B99 #998F31
analogous
#316F99 #313B99 #5B3199
triadic
#313B99 #99313B #3B9931
tetradic
#313B99 #99316F #998F31 #31995B
square
#313B99 #99316F #998F31 #31995B
split-complementary
#313B99 #995B31 #6F9931
monochromatic
#13173C #22296B #313B99 #4450C3 #727CD2

Accessibility & contrast

On white

9.48
#313B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#313B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B99
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B99#FFFFFF#000000##FFFFFF
##313B991.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313b99;
/* rgb */ color: rgb(49, 59, 153);
/* oklch */ color: oklch(40.4% 0.152 272.9);
Tailwind
colors: {
  custom: {
    50: '#7671b8',
    500: '#313b99',
    950: '#000000',
  },
}
SCSS
$custom: #313b99;
$custom-light: #7671b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313b99",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 153
  },
  "hsl": {
    "h": 234.231,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4042,
    "c": 0.15213,
    "h": 272.9
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#313B99
secondary
#BAB26C
accent
#CD4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313B99

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

Preview Lab → · Contrast checker → · Palette generator →

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