#313C97#313C97

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

Color values

HEX#313C97
RGBrgb(49, 60, 151)
HSLhsl(234, 51%, 39%)
HSVhsv(234, 68%, 59%)
CMYKcmyk(67.5%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.71, 26.28, -51.34)
CIE-LCHlch(29.71, 57.68, 297.11°)
OKLaboklab(40.44% 0.0069 -0.1479)
OKLCHoklch(40.44% 0.148 272.7)
XYZxyz(8.4665, 6.1183, 30.0069)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C97 #978C31
analogous
#316F97 #313C97 #593197
triadic
#313C97 #97313C #3C9731
tetradic
#313C97 #97316F #978C31 #319759
square
#313C97 #97316F #978C31 #319759
split-complementary
#313C97 #975931 #6F9731
monochromatic
#13173B #222A69 #313C97 #4351C2 #717CD1

Accessibility & contrast

On white

9.44
#313C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C97
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C97#FFFFFF#000000##FFFFFF
##313C971.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313c97;
/* rgb */ color: rgb(49, 60, 151);
/* oklch */ color: oklch(40.4% 0.148 272.7);
Tailwind
colors: {
  custom: {
    50: '#7671b6',
    500: '#313c97',
    950: '#000000',
  },
}
SCSS
$custom: #313c97;
$custom-light: #7671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313c97",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 233.529,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40439,
    "c": 0.14804,
    "h": 272.7
  },
  "luminance": 0.06119
}

Semantic roles & 50–950 ramp

primary
#313C97
secondary
#B9B06B
accent
#CB4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313C97

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

Preview Lab → · Contrast checker → · Palette generator →

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