#313DA5#313DA5

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

Color values

HEX#313DA5
RGBrgb(49, 61, 165)
HSLhsl(234, 54%, 42%)
HSVhsv(234, 70%, 65%)
CMYKcmyk(70.3%, 63%, 0%, 35.3%)
CIE-LABlab(31.13, 30.72, -57.52)
CIE-LCHlch(31.13, 65.20, 298.10°)
OKLaboklab(41.85% 0.0057 -0.166)
OKLCHoklch(41.85% 0.166 272)
XYZxyz(9.7246, 6.7061, 36.3719)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DA5 #A59931
analogous
#3177A5 #313DA5 #5F31A5
triadic
#313DA5 #A5313D #3DA531
tetradic
#313DA5 #A53177 #A59931 #31A55F
square
#313DA5 #A53177 #A59931 #31A55F
split-complementary
#313DA5 #A55F31 #77A531
monochromatic
#151A47 #232C76 #313DA5 #4A57C9 #7983D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313DA5#FFFFFF#000000##FFFFFF
##313DA51.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)
#004FA8
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313da5;
/* rgb */ color: rgb(49, 61, 165);
/* oklch */ color: oklch(41.9% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#7972c1',
    500: '#313da5',
    950: '#000000',
  },
}
SCSS
$custom: #313da5;
$custom-light: #7972c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313da5",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 165
  },
  "hsl": {
    "h": 233.793,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41851,
    "c": 0.1661,
    "h": 272
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#313DA5
secondary
#C0B872
accent
#CE4ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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