#313EA4#313EA4

#313EA4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.164 H 271.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#313EA4
RGBrgb(49, 62, 164)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 64%)
CMYKcmyk(70.1%, 62.2%, 0%, 35.7%)
CIE-LABlab(31.30, 29.70, -56.64)
CIE-LCHlch(31.30, 63.96, 297.67°)
OKLaboklab(41.95% 0.005 -0.1634)
OKLCHoklch(41.95% 0.164 271.7)
XYZxyz(9.6878, 6.7776, 35.9124)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA4 #A49731
analogous
#3178A4 #313EA4 #5D31A4
triadic
#313EA4 #A4313E #3EA431
tetradic
#313EA4 #A43178 #A49731 #31A45D
square
#313EA4 #A43178 #A49731 #31A45D
split-complementary
#313EA4 #A45D31 #78A431
monochromatic
#151A46 #232C75 #313EA4 #4958C9 #7983D7

Accessibility & contrast

On white

8.91
#313EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#313EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA4
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA4#FFFFFF#000000##FFFFFF
##313EA41.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313ea4;
/* rgb */ color: rgb(49, 62, 164);
/* oklch */ color: oklch(41.9% 0.164 271.7);
Tailwind
colors: {
  custom: {
    50: '#7973c0',
    500: '#313ea4',
    950: '#000000',
  },
}
SCSS
$custom: #313ea4;
$custom-light: #7973c0;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea4",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 164
  },
  "hsl": {
    "h": 233.217,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41948,
    "c": 0.1635,
    "h": 271.7
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#313EA4
secondary
#BFB672
accent
#CD4ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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