#313CAE#313CAE

#313CAE is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.179 H 271.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#313CAE
RGBrgb(49, 60, 174)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(71.8%, 65.5%, 0%, 31.8%)
CIE-LABlab(31.67, 34.59, -62.03)
CIE-LCHlch(31.67, 71.02, 299.15°)
OKLaboklab(42.49% 0.0059 -0.1792)
OKLCHoklch(42.49% 0.179 271.9)
XYZxyz(10.5199, 6.9396, 40.8213)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CAE #AEA331
analogous
#317AAE #313CAE #6431AE
triadic
#313CAE #AE313C #3CAE31
tetradic
#313CAE #AE317A #AEA331 #31AE64
square
#313CAE #AE317A #AEA331 #31AE64
split-complementary
#313CAE #AE6431 #7AAE31
monochromatic
#161B4E #242C7E #313CAE #4F5ACD #7F87DB

Accessibility & contrast

On white

8.79
#313CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CAE
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CAE#FFFFFF#000000##FFFFFF
##313CAE1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313cae;
/* rgb */ color: rgb(49, 60, 174);
/* oklch */ color: oklch(42.5% 0.179 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b72c7',
    500: '#313cae',
    950: '#000000',
  },
}
SCSS
$custom: #313cae;
$custom-light: #7b72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#313cae",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 174
  },
  "hsl": {
    "h": 234.72,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4249,
    "c": 0.17932,
    "h": 271.9
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#313CAE
secondary
#C4BD77
accent
#D248DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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