#313B9A#313B9A

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

Color values

HEX#313B9A
RGBrgb(49, 59, 154)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 68%, 60%)
CMYKcmyk(68.2%, 61.7%, 0%, 39.6%)
CIE-LABlab(29.70, 28.04, -53.19)
CIE-LCHlch(29.70, 60.13, 297.79°)
OKLaboklab(40.51% 0.0077 -0.1533)
OKLCHoklch(40.51% 0.154 272.9)
XYZxyz(8.6614, 6.1132, 31.2891)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B9A #9A9031
analogous
#316F9A #313B9A #5C319A
triadic
#313B9A #9A313B #3B9A31
tetradic
#313B9A #9A316F #9A9031 #319A5C
square
#313B9A #9A316F #9A9031 #319A5C
split-complementary
#313B9A #9A5C31 #6F9A31
monochromatic
#13173D #22296C #313B9A #4551C4 #737CD2

Accessibility & contrast

On white

9.45
#313B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B9A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B9A#FFFFFF#000000##FFFFFF
##313B9A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313b9a;
/* rgb */ color: rgb(49, 59, 154);
/* oklch */ color: oklch(40.5% 0.154 272.9);
Tailwind
colors: {
  custom: {
    50: '#7771b9',
    500: '#313b9a',
    950: '#000000',
  },
}
SCSS
$custom: #313b9a;
$custom-light: #7771b9;
$custom-dark: #000000;
JSON
{
  "hex": "#313b9a",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 154
  },
  "hsl": {
    "h": 234.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40507,
    "c": 0.15352,
    "h": 272.9
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#313B9A
secondary
#BAB36C
accent
#CE4DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #313B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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