#313A99#313A99

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

Color values

HEX#313A99
RGBrgb(49, 58, 153)
HSLhsl(235, 51%, 40%)
HSVhsv(235, 68%, 60%)
CMYKcmyk(68%, 62.1%, 0%, 40%)
CIE-LABlab(29.36, 28.33, -53.14)
CIE-LCHlch(29.36, 60.22, 298.07°)
OKLaboklab(40.23% 0.0085 -0.1532)
OKLCHoklch(40.23% 0.153 273.2)
XYZxyz(8.5275, 5.9782, 30.8353)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A99 #999031
analogous
#316E99 #313A99 #5C3199
triadic
#313A99 #99313A #3A9931
tetradic
#313A99 #99316E #999031 #31995C
square
#313A99 #99316E #999031 #31995C
split-complementary
#313A99 #995C31 #6E9931
monochromatic
#13173C #22286B #313A99 #444FC3 #727BD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313A99#FFFFFF#000000##FFFFFF
##313A991.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)
#004A9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313a99;
/* rgb */ color: rgb(49, 58, 153);
/* oklch */ color: oklch(40.2% 0.153 273.2);
Tailwind
colors: {
  custom: {
    50: '#7670b8',
    500: '#313a99',
    950: '#000000',
  },
}
SCSS
$custom: #313a99;
$custom-light: #7670b8;
$custom-dark: #000000;
JSON
{
  "hex": "#313a99",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 234.808,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40231,
    "c": 0.15341,
    "h": 273.2
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313A99

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

Preview Lab → · Contrast checker → · Palette generator →

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