#313BAE#313BAE

#313BAE is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.180 H 272.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#313BAE
RGBrgb(49, 59, 174)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(71.8%, 66.1%, 0%, 31.8%)
CIE-LABlab(31.43, 35.23, -62.42)
CIE-LCHlch(31.43, 71.67, 299.44°)
OKLaboklab(42.32% 0.0066 -0.1804)
OKLCHoklch(42.32% 0.18 272.1)
XYZxyz(10.4680, 6.8358, 40.8040)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BAE #AEA431
analogous
#3179AE #313BAE #6531AE
triadic
#313BAE #AE313B #3BAE31
tetradic
#313BAE #AE3179 #AEA431 #31AE65
square
#313BAE #AE3179 #AEA431 #31AE65
split-complementary
#313BAE #AE6531 #79AE31
monochromatic
#161B4E #242B7E #313BAE #4F59CD #7F86DB

Accessibility & contrast

On white

8.87
#313BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BAE
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BAE#FFFFFF#000000##FFFFFF
##313BAE1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313bae;
/* rgb */ color: rgb(49, 59, 174);
/* oklch */ color: oklch(42.3% 0.180 272.1);
Tailwind
colors: {
  custom: {
    50: '#7b71c7',
    500: '#313bae',
    950: '#000000',
  },
}
SCSS
$custom: #313bae;
$custom-light: #7b71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#313bae",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 174
  },
  "hsl": {
    "h": 235.2,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42316,
    "c": 0.18049,
    "h": 272.1
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#313BAE
secondary
#C4BE77
accent
#D348DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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