#313CA7#313CA7

#313CA7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.170 H 272.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#313CA7
RGBrgb(49, 60, 167)
HSLhsl(234, 55%, 42%)
HSVhsv(234, 71%, 65%)
CMYKcmyk(70.7%, 64.1%, 0%, 34.5%)
CIE-LABlab(31.05, 32.09, -58.84)
CIE-LCHlch(31.05, 67.02, 298.60°)
OKLaboklab(41.85% 0.0064 -0.1699)
OKLCHoklch(41.85% 0.17 272.1)
XYZxyz(9.8552, 6.6737, 37.3205)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA7 #A79C31
analogous
#3177A7 #313CA7 #6131A7
triadic
#313CA7 #A7313C #3CA731
tetradic
#313CA7 #A73177 #A79C31 #31A761
square
#313CA7 #A73177 #A79C31 #31A761
split-complementary
#313CA7 #A76131 #77A731
monochromatic
#151A48 #232B78 #313CA7 #4B57CA #7A83D8

Accessibility & contrast

On white

8.99
#313CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#313CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CA7
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA7#FFFFFF#000000##FFFFFF
##313CA71.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ca7;
/* rgb */ color: rgb(49, 60, 167);
/* oklch */ color: oklch(41.8% 0.170 272.1);
Tailwind
colors: {
  custom: {
    50: '#7972c2',
    500: '#313ca7',
    950: '#000000',
  },
}
SCSS
$custom: #313ca7;
$custom-light: #7972c2;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca7",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 234.407,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41849,
    "c": 0.17002,
    "h": 272.1
  },
  "luminance": 0.06675
}

Semantic roles & 50–950 ramp

primary
#313CA7
secondary
#C1B973
accent
#D04ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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