#313CA8#313CA8

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

Color values

HEX#313CA8
RGBrgb(49, 60, 168)
HSLhsl(234, 55%, 43%)
HSVhsv(234, 71%, 66%)
CMYKcmyk(70.8%, 64.3%, 0%, 34.1%)
CIE-LABlab(31.14, 32.45, -59.30)
CIE-LCHlch(31.14, 67.60, 298.68°)
OKLaboklab(41.94% 0.0063 -0.1712)
OKLCHoklch(41.94% 0.171 272.1)
XYZxyz(9.9480, 6.7109, 37.8093)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CA8 #A89D31
analogous
#3177A8 #313CA8 #6231A8
triadic
#313CA8 #A8313C #3CA831
tetradic
#313CA8 #A83177 #A89D31 #31A862
square
#313CA8 #A83177 #A89D31 #31A862
split-complementary
#313CA8 #A86231 #77A831
monochromatic
#151A49 #232B79 #313CA8 #4C57CB #7B84D8

Accessibility & contrast

On white

8.97
#313CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313CA8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CA8#FFFFFF#000000##FFFFFF
##313CA81.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313ca8;
/* rgb */ color: rgb(49, 60, 168);
/* oklch */ color: oklch(41.9% 0.171 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a72c3',
    500: '#313ca8',
    950: '#000000',
  },
}
SCSS
$custom: #313ca8;
$custom-light: #7a72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313ca8",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 234.454,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41939,
    "c": 0.17136,
    "h": 272.1
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#313CA8
secondary
#C1BA74
accent
#D04ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #313CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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