#313B97#313B97

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

Color values

HEX#313B97
RGBrgb(49, 59, 151)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 68%, 59%)
CMYKcmyk(67.5%, 60.9%, 0%, 40.8%)
CIE-LABlab(29.45, 26.94, -51.77)
CIE-LCHlch(29.45, 58.36, 297.50°)
OKLaboklab(40.25% 0.0077 -0.1491)
OKLCHoklch(40.25% 0.149 273)
XYZxyz(8.4146, 6.0145, 29.9896)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B97 #978D31
analogous
#316E97 #313B97 #5A3197
triadic
#313B97 #97313B #3B9731
tetradic
#313B97 #97316E #978D31 #31975A
square
#313B97 #97316E #978D31 #31975A
split-complementary
#313B97 #975A31 #6E9731
monochromatic
#13173B #222969 #313B97 #4350C2 #717BD1

Accessibility & contrast

On white

9.53
#313B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B97
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B97#FFFFFF#000000##FFFFFF
##313B971.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313b97;
/* rgb */ color: rgb(49, 59, 151);
/* oklch */ color: oklch(40.2% 0.149 273.0);
Tailwind
colors: {
  custom: {
    50: '#7671b6',
    500: '#313b97',
    950: '#000000',
  },
}
SCSS
$custom: #313b97;
$custom-light: #7671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313b97",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 234.118,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40247,
    "c": 0.14934,
    "h": 273
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#313B97
secondary
#B9B16B
accent
#CD4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B97

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

Preview Lab → · Contrast checker → · Palette generator →

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