#313CAD#313CAD

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

Color values

HEX#313CAD
RGBrgb(49, 60, 173)
HSLhsl(235, 56%, 44%)
HSVhsv(235, 72%, 68%)
CMYKcmyk(71.7%, 65.3%, 0%, 32.2%)
CIE-LABlab(31.58, 34.24, -61.57)
CIE-LCHlch(31.58, 70.45, 299.08°)
OKLaboklab(42.4% 0.006 -0.1779)
OKLCHoklch(42.4% 0.178 271.9)
XYZxyz(10.4228, 6.9008, 40.3098)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CAD #ADA231
analogous
#317AAD #313CAD #6431AD
triadic
#313CAD #AD313C #3CAD31
tetradic
#313CAD #AD317A #ADA231 #31AD64
square
#313CAD #AD317A #ADA231 #31AD64
split-complementary
#313CAD #AD6431 #7AAD31
monochromatic
#161B4E #232B7D #313CAD #4E59CD #7E86DA

Accessibility & contrast

On white

8.82
#313CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#313CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CAD
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CAD#FFFFFF#000000##FFFFFF
##313CAD1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cad;
/* rgb */ color: rgb(49, 60, 173);
/* oklch */ color: oklch(42.4% 0.178 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b72c6',
    500: '#313cad',
    950: '#000000',
  },
}
SCSS
$custom: #313cad;
$custom-light: #7b72c6;
$custom-dark: #000000;
JSON
{
  "hex": "#313cad",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 173
  },
  "hsl": {
    "h": 234.677,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42398,
    "c": 0.178,
    "h": 271.9
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#313CAD
secondary
#C3BC77
accent
#D249DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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