#313EAE#313EAE

#313EAE is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.177 H 271.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#313EAE
RGBrgb(49, 62, 174)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 68%)
CMYKcmyk(71.8%, 64.4%, 0%, 31.8%)
CIE-LABlab(32.15, 33.32, -61.23)
CIE-LCHlch(32.15, 69.71, 298.55°)
OKLaboklab(42.85% 0.0046 -0.1769)
OKLCHoklch(42.85% 0.177 271.5)
XYZxyz(10.6266, 7.1531, 40.8569)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EAE #AEA131
analogous
#317CAE #313EAE #6231AE
triadic
#313EAE #AE313E #3EAE31
tetradic
#313EAE #AE317C #AEA131 #31AE62
square
#313EAE #AE317C #AEA131 #31AE62
split-complementary
#313EAE #AE6231 #7CAE31
monochromatic
#161C4E #242D7E #313EAE #4F5CCD #7F88DB

Accessibility & contrast

On white

8.64
#313EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#313EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EAE
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EAE#FFFFFF#000000##FFFFFF
##313EAE1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313eae;
/* rgb */ color: rgb(49, 62, 174);
/* oklch */ color: oklch(42.8% 0.177 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b73c7',
    500: '#313eae',
    950: '#000000',
  },
}
SCSS
$custom: #313eae;
$custom-light: #7b73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#313eae",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 233.76,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.17695,
    "h": 271.5
  },
  "luminance": 0.07154
}

Semantic roles & 50–950 ramp

primary
#313EAE
secondary
#C4BC77
accent
#D048DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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