#313B96#313B96

#313B96 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.148 H 273.0°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#313B96
RGBrgb(49, 59, 150)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 67%, 59%)
CMYKcmyk(67.3%, 60.7%, 0%, 41.2%)
CIE-LABlab(29.37, 26.58, -51.29)
CIE-LCHlch(29.37, 57.77, 297.39°)
OKLaboklab(40.16% 0.0077 -0.1477)
OKLCHoklch(40.16% 0.148 273)
XYZxyz(8.3338, 5.9822, 29.5637)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B96 #968C31
analogous
#316E96 #313B96 #5A3196
triadic
#313B96 #96313B #3B9631
tetradic
#313B96 #96316E #968C31 #31965A
square
#313B96 #96316E #968C31 #31965A
split-complementary
#313B96 #965A31 #6E9631
monochromatic
#13173A #222968 #313B96 #434FC1 #717AD1

Accessibility & contrast

On white

9.56
#313B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#313B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B96
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B96#FFFFFF#000000##FFFFFF
##313B961.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313b96;
/* rgb */ color: rgb(49, 59, 150);
/* oklch */ color: oklch(40.2% 0.148 273.0);
Tailwind
colors: {
  custom: {
    50: '#7671b6',
    500: '#313b96',
    950: '#000000',
  },
}
SCSS
$custom: #313b96;
$custom-light: #7671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313b96",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 150
  },
  "hsl": {
    "h": 234.059,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.14793,
    "h": 273
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#313B96
secondary
#B8B16A
accent
#CC4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B96

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

Preview Lab → · Contrast checker → · Palette generator →

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