#313DAE#313DAE

#313DAE is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.178 H 271.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#313DAE
RGBrgb(49, 61, 174)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 68%)
CMYKcmyk(71.8%, 64.9%, 0%, 31.8%)
CIE-LABlab(31.91, 33.96, -61.63)
CIE-LCHlch(31.91, 70.37, 298.85°)
OKLaboklab(42.67% 0.0052 -0.1781)
OKLCHoklch(42.67% 0.178 271.7)
XYZxyz(10.5728, 7.0454, 40.8389)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DAE #AEA231
analogous
#317BAE #313DAE #6331AE
triadic
#313DAE #AE313D #3DAE31
tetradic
#313DAE #AE317B #AEA231 #31AE63
square
#313DAE #AE317B #AEA231 #31AE63
split-complementary
#313DAE #AE6331 #7BAE31
monochromatic
#161C4E #242C7E #313DAE #4F5BCD #7F87DB

Accessibility & contrast

On white

8.72
#313DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#313DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DAE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DAE#FFFFFF#000000##FFFFFF
##313DAE1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313dae;
/* rgb */ color: rgb(49, 61, 174);
/* oklch */ color: oklch(42.7% 0.178 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b72c7',
    500: '#313dae',
    950: '#000000',
  },
}
SCSS
$custom: #313dae;
$custom-light: #7b72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#313dae",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 174
  },
  "hsl": {
    "h": 234.24,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42667,
    "c": 0.17814,
    "h": 271.7
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#313DAE
secondary
#C4BC77
accent
#D148DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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