#313A97#313A97

#313A97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.151 H 273.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#313A97
RGBrgb(49, 58, 151)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 68%, 59%)
CMYKcmyk(67.5%, 61.6%, 0%, 40.8%)
CIE-LABlab(29.19, 27.60, -52.19)
CIE-LCHlch(29.19, 59.04, 297.88°)
OKLaboklab(40.06% 0.0086 -0.1504)
OKLCHoklch(40.06% 0.151 273.3)
XYZxyz(8.3637, 5.9127, 29.9727)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A97 #978E31
analogous
#316D97 #313A97 #5B3197
triadic
#313A97 #97313A #3A9731
tetradic
#313A97 #97316D #978E31 #31975B
square
#313A97 #97316D #978E31 #31975B
split-complementary
#313A97 #975B31 #6D9731
monochromatic
#13173B #222869 #313A97 #434EC2 #717AD1

Accessibility & contrast

On white

9.62
#313A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A97
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A97#FFFFFF#000000##FFFFFF
##313A971.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313a97;
/* rgb */ color: rgb(49, 58, 151);
/* oklch */ color: oklch(40.1% 0.151 273.3);
Tailwind
colors: {
  custom: {
    50: '#7670b6',
    500: '#313a97',
    950: '#000000',
  },
}
SCSS
$custom: #313a97;
$custom-light: #7670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313a97",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 234.706,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.15062,
    "h": 273.3
  },
  "luminance": 0.05913
}

Semantic roles & 50–950 ramp

primary
#313A97
secondary
#B9B26B
accent
#CE4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A97

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

Preview Lab → · Contrast checker → · Palette generator →

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