#313EA6#313EA6

#313EA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.166 H 271.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#313EA6
RGBrgb(49, 62, 166)
HSLhsl(233, 54%, 42%)
HSVhsv(233, 70%, 65%)
CMYKcmyk(70.5%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.46, 30.43, -57.57)
CIE-LCHlch(31.46, 65.12, 297.86°)
OKLaboklab(42.13% 0.0049 -0.1661)
OKLCHoklch(42.13% 0.166 271.7)
XYZxyz(9.8699, 6.8504, 36.8711)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA6 #A69931
analogous
#3179A6 #313EA6 #5E31A6
triadic
#313EA6 #A6313E #3EA631
tetradic
#313EA6 #A63179 #A69931 #31A65E
square
#313EA6 #A63179 #A69931 #31A65E
split-complementary
#313EA6 #A65E31 #79A631
monochromatic
#151B47 #232C77 #313EA6 #4A59CA #7A84D8

Accessibility & contrast

On white

8.86
#313EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#313EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA6
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA6#FFFFFF#000000##FFFFFF
##313EA61.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #313ea6;
/* rgb */ color: rgb(49, 62, 166);
/* oklch */ color: oklch(42.1% 0.166 271.7);
Tailwind
colors: {
  custom: {
    50: '#7973c1',
    500: '#313ea6',
    950: '#000000',
  },
}
SCSS
$custom: #313ea6;
$custom-light: #7973c1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea6",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 233.333,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.16621,
    "h": 271.7
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#313EA6
secondary
#C0B873
accent
#CD4ADE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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